Skip to content

Commit

Permalink
Update pattern.go
Browse files Browse the repository at this point in the history
  • Loading branch information
willmafra authored Aug 22, 2017
1 parent 5731446 commit 16472ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html

// DefaultTimeLayout is the default layout used by %d
var DefaultTimeLayout = "2006-01-02 15:04:05.000000000 -0700 MST"
var DefaultTimeLayout = "2006-01-02 15:04:05.000"

// LegacyDefaultTimeLayout is the legacy (non-zero padded) time layout.
// Set layout.DefaultTimeLayout = layout.LegacyDefaultTimeLayout to revert behaviour.
Expand Down Expand Up @@ -47,7 +47,7 @@ func Pattern(pattern string) *patternLayout {
}

func getCaller() *caller {
pc, file, line, ok := runtime.Caller(2)
pc, file, line, ok := runtime.Caller(6)

// TODO feels nasty?
dir, fn := filepath.Split(file)
Expand Down

0 comments on commit 16472ef

Please # to comment.