semantic_logger 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/semantic_logger/railtie.rb +2 -6
- data/lib/semantic_logger/version.rb +1 -1
- metadata +2 -2
@@ -29,12 +29,8 @@ module SemanticLogger #:nodoc:
|
|
29
29
|
# Set the default log level based on the Rails config
|
30
30
|
SemanticLogger::Logger.level = config.log_level
|
31
31
|
|
32
|
-
#
|
33
|
-
|
34
|
-
# Add existing Logger to the list of appenders
|
35
|
-
SemanticLogger::Logger.appenders << SemanticLogger::Appender::Logger.new(existing_logger)
|
36
|
-
end
|
37
|
-
|
32
|
+
# Existing loggers are ignored because servers like trinidad supply their
|
33
|
+
# own file loggers which would result in duplicate logging to the same log file
|
38
34
|
Rails.logger = config.logger = begin
|
39
35
|
# First check for Rails 3.2 path, then fallback to pre-3.2
|
40
36
|
path = ((config.paths.log.to_a rescue nil) || config.paths['log']).first
|