lib/phobos/log.rb in phobos-2.1.2 vs lib/phobos/log.rb in phobos-2.1.3
- old
+ new
@@ -11,9 +11,13 @@
end
def log_error(msg, metadata)
LoggerHelper.log(:error, msg, metadata)
end
+
+ def log_warn(msg, metadata = {})
+ LoggerHelper.log(:warn, msg, metadata)
+ end
end
module LoggerHelper
def self.log(method, msg, metadata)
Phobos.logger.send(method, Hash(message: msg).merge(metadata))