lib/sapience/appender/stream.rb in sapience-2.5.2 vs lib/sapience/appender/stream.rb in sapience-2.5.3
- old
+ new
@@ -113,10 +113,10 @@
def log(log)
return false unless should_log?(log)
# Since only one appender thread will be writing to the file at a time
# it is not necessary to protect access to the file with a semaphore
# Allow this logger to filter out log levels lower than it's own
- @log.write(+formatter.call(log, self) << "\n")
+ @log.write(formatter.call(log, self) + "\n")
true
end
# Flush all pending logs to disk.
# Waits for all sent documents to be writted to disk