Skip to content

Commit

Permalink
- update logging style to reflect new awesomeness given by the cabin
Browse files Browse the repository at this point in the history
  library
  • Loading branch information
jordansissel committed Jan 14, 2012
1 parent b4b5340 commit 5126c15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions STYLE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Style Guide

Rather than write a full style guide, please follow by examples you see in the
code. If you send me a patch, I will not reject it for style reasons (but I
will fix it before it gets committed)

code. If you send me a patch, I will not reject it for style reasons (but I
will fix it before it gets committed).

## Logging

Expand All @@ -15,8 +14,7 @@ Rather than this:

Do this:

@logger.info(["Some error occured in this request", { :request => request, :input => input, :client => ip}])

@logger.info("Some error occured in this request", :request => request, :input => input, :client => ip)

## Code Style

Expand Down

0 comments on commit 5126c15

Please sign in to comment.