Skip to content

Commit

Permalink
Merge pull request #96 from getamis/carawang/support/ws-659
Browse files Browse the repository at this point in the history
CHORE WS-661: WS-659: remove custom.timestamp and add mocks file for logger
  • Loading branch information
CaraWang authored May 29, 2023
2 parents 9cd7242 + cd17ec3 commit 4d09e85
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 3 deletions.
120 changes: 120 additions & 0 deletions log/mocks/Logger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions log/rollbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ func (h *RollbarHandler) Log(r *Record) error {
interfaces = append(interfaces, h.SkipLevel)
}

// Add timestamp
metaData := make(map[string]interface{})
metaData["timestamp"] = r.Time.Format(termTimeFormat)

// Append location
if atomic.LoadUint32(&locationEnabled) != 0 {
// Log origin printing was requested, format the location path and line number
Expand Down

0 comments on commit 4d09e85

Please sign in to comment.