lib/rrj/errors/error.rb in ruby_rabbitmq_janus-3.0.0.pre.335 vs lib/rrj/errors/error.rb in ruby_rabbitmq_janus-3.0.0.pre.336
- old
+ new
@@ -16,10 +16,10 @@
write_error(message, level)
end
private
- def write_error(message, level)
+ def write_error(message, level = :unknown)
if defined?(::Log)
::Log.add(level, message)
else
p "#{level}, #{message}"
end