fixes printing Module name

This commit is contained in:
onyx-and-iris 2023-07-25 12:58:32 +01:00
parent 802bfdbc24
commit 333d8da678

View File

@ -4,7 +4,7 @@ module Voicemeeter
module Logging module Logging
def logger def logger
@logger = Logger.new($stdout, level: ENV.fetch("VM_LOG_LEVEL", "WARN")) @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 @logger
end end
end end