semantic_logger 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -213,8 +213,13 @@ module SemanticLogger
213
213
  logger.error "Appender thread restarting due to exception", exception
214
214
  retry
215
215
  ensure
216
- logger.debug "Appender thread has stopped"
217
216
  @@appender_thread = nil
217
+ # This block may be called after the file handles have been released by Ruby
218
+ begin
219
+ logger.debug "Appender thread has stopped"
220
+ rescue Exception
221
+ nil
222
+ end
218
223
  end
219
224
  end
220
225
 
@@ -40,8 +40,8 @@ module SemanticLogger #:nodoc:
40
40
  end
41
41
 
42
42
  # Set internal logger to log to file only, in case another appender
43
- # experiences logging problems
44
- appender = SemanticLogger::Appender::File.new(path)
43
+ # experiences errors during writes
44
+ appender = SemanticLogger::Appender::File.new(path, config.log_level)
45
45
  appender.name = "SemanticLogger::Logger"
46
46
  SemanticLogger::Logger.logger = appender
47
47
 
@@ -1,3 +1,3 @@
1
1
  module SemanticLogger #:nodoc
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: 225054469971419847
111
+ hash: -3004571273637428980
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements: