Allow exceptions as first argument for Logger#warn

Extract #coerce_to_message out of Logger#error.