mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-21 17:30:49 +00:00
fixes printing Module name
This commit is contained in:
parent
802bfdbc24
commit
333d8da678
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user