From 333d8da67844106f91c5d8c4e1bfb2ca19fa43da Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 25 Jul 2023 12:58:32 +0100 Subject: [PATCH] fixes printing Module name --- lib/voicemeeter/logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/voicemeeter/logger.rb b/lib/voicemeeter/logger.rb index ee697b8..dce0e10 100644 --- a/lib/voicemeeter/logger.rb +++ b/lib/voicemeeter/logger.rb @@ -4,7 +4,7 @@ module Voicemeeter module Logging def logger @logger = Logger.new($stdout, level: ENV.fetch("VM_LOG_LEVEL", "WARN")) - @logger.progname = self.class.name + @logger.progname = instance_of?(::Module) ? name : self.class.name @logger end end