You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@htrace.apache.org by iw...@apache.org on 2015/11/24 19:18:18 UTC
incubator-htrace git commit: HTRACE-306. htraced: logs should use UTC
(Colin Patrick McCabe via iwasakims)
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 <iw...@apache.org>
Authored: Wed Nov 25 03:17:49 2015 +0900
Committer: Masatake Iwasaki <iw...@apache.org>
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)
}
}