Skip to content

Commit

Permalink
TECH-4608: update method name to match contract
Browse files Browse the repository at this point in the history
  • Loading branch information
jebentier committed Aug 17, 2020
1 parent 1f11ae9 commit ec523ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/contextual_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ def format_message(severity, timestamp, progname, message, context: {})
if @formatter
@formatter.call(severity, timestamp, progname, { message: ContextualLogger.normalize_message(message), **context })
else
"#{basic_message_formatting(severity, timestamp, progname, message, context: context)}\n"
"#{basic_json_log_entry(severity, timestamp, progname, message, context: context)}\n"
end
end

def basic_message_formatting(severity, timestamp, progname, message, context:)
def basic_json_log_entry(severity, timestamp, progname, message, context:)
message_hash = {
message: ContextualLogger.normalize_message(message),
severity: severity,
Expand Down

0 comments on commit ec523ce

Please sign in to comment.