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