Skip to content

Commit

Permalink
Merge pull request #249 from lukebakken/issue-248
Browse files Browse the repository at this point in the history
Fix for issue 248
  • Loading branch information
macournoyer committed Sep 19, 2015
2 parents 433deb4 + f64c297 commit f5e0dde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/thin/logging.rb
Expand Up @@ -154,7 +154,10 @@ def log_info(msg)

# Log a message at ERROR level (and maybe a backtrace)
def log_error(msg, e=nil)
log_msg = msg + ": #{e}\n\t" + e.backtrace.join("\n\t") + "\n" if e
log_msg = msg
if e
log_msg += ": #{e}\n\t" + e.backtrace.join("\n\t") + "\n"
end
Logging.log_msg(log_msg, Logger::ERROR)
end
module_function :log_error
Expand Down

0 comments on commit f5e0dde

Please sign in to comment.