Skip to content

Commit

Permalink
ISO date ftw
Browse files Browse the repository at this point in the history
  • Loading branch information
paukul committed Nov 11, 2010
1 parent 21dc3dd commit 1225ffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/amqp_logging/metrics_agent.rb
Expand Up @@ -42,7 +42,7 @@ def []=(fieldname, value)

def add_logline(severity, message, progname, logger)
t = Time.now
@fields[:loglines][@logger_types[logger]] << [severity, t.strftime("%d.%m.%YT%H:%M:%S.#{t.usec}"), message || progname]
@fields[:loglines][@logger_types[logger]] << [severity, t.strftime("%Y.%d.%mT%H:%M:%S.#{t.usec}"), message || progname]
end

def wrap_logger(logger, type = :default)
Expand Down
2 changes: 1 addition & 1 deletion lib/amqp_logging/metrics_agent/rails.rb
Expand Up @@ -9,7 +9,7 @@ class ActionController::Base
def log_processing_for_request_id_with_metrics_agent
logger.agent[:page] = "#{self.class.name}\##{action_name}"
t = Time.now
logger.agent[:started_at] = t.strftime("%d.%m.%YT%H:%M:%S.#{t.usec}")
logger.agent[:started_at] = t.strftime("%Y.%d.%mT%H:%M:%S.#{t.usec}")
log_processing_for_request_id_without_metrics_agent
end
alias_method_chain :log_processing_for_request_id, :metrics_agent
Expand Down

0 comments on commit 1225ffd

Please sign in to comment.