Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Make tags unique
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Feb 19, 2017
1 parent 70c34c3 commit 9a28864
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/timber/logger.rb
Expand Up @@ -82,6 +82,7 @@ def build_log_entry(severity, time, progname, msg)
if msg.is_a?(Hash)
tags << msg.delete(:tag) if msg.key?(:tag)
tags += msg.delete(:tags) if msg.key?(:tags)
tags.uniq!
time_ms = msg.delete(:time_ms) if msg.key?(:time_ms)

msg = msg[:message] if msg.length == 1
Expand Down

0 comments on commit 9a28864

Please sign in to comment.