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