You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ti...@apache.org on 2019/09/09 07:30:01 UTC

[servicecomb-service-center] branch master updated: Use local time in backup log files (#585)

This is an automated email from the ASF dual-hosted git repository.

tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git


The following commit(s) were added to refs/heads/master by this push:
     new 0633244  Use local time in backup log files (#585)
0633244 is described below

commit 0633244987aee4b532e9a375fe20d4e6e3f790e6
Author: humingcheng <hu...@163.com>
AuthorDate: Mon Sep 9 15:29:57 2019 +0800

    Use local time in backup log files (#585)
---
 pkg/log/zap.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/log/zap.go b/pkg/log/zap.go
index 2c417fc..e5e9fc1 100644
--- a/pkg/log/zap.go
+++ b/pkg/log/zap.go
@@ -119,7 +119,7 @@ func toZapConfig(c Config) zapcore.Core {
 			MaxSize:    c.LogRotateSize,
 			MaxBackups: c.LogBackupCount,
 			MaxAge:     c.LogBackupAge,
-			LocalTime:  false,
+			LocalTime:  true,
 			Compress:   true,
 		})
 	} else {