Skip to content

Commit

Permalink
Make timestamp correct for Loggly json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Utter committed Sep 24, 2015
1 parent 5a8ebcd commit bcec083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hedgelog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Hedgelog
TOP_LEVEL_KEYS = [:app, :channel, :level, :level_name, :message, :request_id, :timestamp]
RESERVED_KEYS = [:app, :level, :level_name, :timestamp, :context, :caller]

TIMESTAMP_FORMAT = '%Y-%m-%dT%H:%M:%S.%6N'.freeze
TIMESTAMP_FORMAT = '%Y-%m-%dT%H:%M:%S.%6N%z'.freeze
BACKTRACE_RE = /([^:]+):([0-9]+)(?::in `(.*)')?/

def initialize(logdev = STDOUT, shift_age = nil, shift_size = nil)
Expand Down
2 changes: 1 addition & 1 deletion lib/hedgelog/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Hedgelog
VERSION = '0.1.1'
VERSION = '0.1.2'
end

0 comments on commit bcec083

Please sign in to comment.