lib/semantic_logger/appender/file.rb in semantic_logger-4.6.1 vs lib/semantic_logger/appender/file.rb in semantic_logger-4.7.0
- old
+ new
@@ -62,10 +62,11 @@
def initialize(io: nil, file_name: nil, **args, &block)
if io
@log = io
else
@file_name = file_name
- raise 'SemanticLogging::Appender::File missing mandatory parameter :file_name or :io' unless file_name
+ raise "SemanticLogging::Appender::File missing mandatory parameter :file_name or :io" unless file_name
+
reopen
end
super(**args, &block)
end