diff --git a/Gemfile.lock b/Gemfile.lock index d06a28c..199be40 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - obsws (0.4.0) + obsws (0.4.1) waitutil (~> 0.2.1) websocket-driver (~> 0.7.5) diff --git a/lib/obsws/logger.rb b/lib/obsws/logger.rb index e27244a..8ac04eb 100644 --- a/lib/obsws/logger.rb +++ b/lib/obsws/logger.rb @@ -3,7 +3,7 @@ require "logger" module OBSWS module Logging def logger - @logger = Logger.new($stdout, level: ENV.fetch("OBSWS_LOG_LEVEL", "WARN")) + @logger ||= Logger.new($stdout, level: ENV.fetch("OBSWS_LOG_LEVEL", "WARN")) @logger.progname = instance_of?(::Module) ? name : self.class.name @logger end diff --git a/lib/obsws/version.rb b/lib/obsws/version.rb index 1f22c0d..fcb9642 100644 --- a/lib/obsws/version.rb +++ b/lib/obsws/version.rb @@ -11,7 +11,7 @@ module OBSWS end def patch - 1 + 2 end def to_a