Repository: incubator-htrace Updated Branches: refs/heads/master cfb5f1863 -> 6390f4b94
HTRACE-306. htraced: logs should use UTC (Colin Patrick McCabe via iwasakims) Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/6390f4b9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/6390f4b9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/6390f4b9 Branch: refs/heads/master Commit: 6390f4b94c5d84b5490245ccbe6ebc2901a2551a Parents: cfb5f18 Author: Masatake Iwasaki <[email protected]> Authored: Wed Nov 25 03:17:49 2015 +0900 Committer: Masatake Iwasaki <[email protected]> Committed: Wed Nov 25 03:17:49 2015 +0900 ---------------------------------------------------------------------- htrace-htraced/go/src/org/apache/htrace/common/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/6390f4b9/htrace-htraced/go/src/org/apache/htrace/common/log.go ---------------------------------------------------------------------- diff --git a/htrace-htraced/go/src/org/apache/htrace/common/log.go b/htrace-htraced/go/src/org/apache/htrace/common/log.go index 5697d18..8cb3953 100644 --- a/htrace-htraced/go/src/org/apache/htrace/common/log.go +++ b/htrace-htraced/go/src/org/apache/htrace/common/log.go @@ -258,7 +258,7 @@ func (lg *Logger) Errorf(format string, v ...interface{}) error { func (lg *Logger) Write(level Level, str string) { if level >= lg.Level { - lg.sink.write(time.Now().Format(time.RFC3339) + " " + + lg.sink.write(time.Now().UTC().Format(time.RFC3339) + " " + level.LogString() + ": " + str) } }
