[ARVADOS] updated: 3947ec4aa92c71e2402de0b34a60183ae0c52445

Git user git at public.curoverse.com
Sun Nov 20 00:47:52 EST 2016


Summary of changes:
 services/keepstore/config.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

       via  3947ec4aa92c71e2402de0b34a60183ae0c52445 (commit)
      from  da14fa3f2bc1b5cd2fc615b2feb5ab45f244b06a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 3947ec4aa92c71e2402de0b34a60183ae0c52445
Author: Tom Clegg <tom at curoverse.com>
Date:   Sun Nov 20 00:30:16 2016 -0500

    10473: Fixed-width timestamps.

diff --git a/services/keepstore/config.go b/services/keepstore/config.go
index b2041c3..8824db9 100644
--- a/services/keepstore/config.go
+++ b/services/keepstore/config.go
@@ -40,6 +40,8 @@ type Config struct {
 
 var theConfig = DefaultConfig()
 
+const rfc3339NanoFixed = "2006-01-02T15:04:05.000000000Z07:00"
+
 // DefaultConfig returns the default configuration.
 func DefaultConfig() *Config {
 	return &Config{
@@ -68,11 +70,11 @@ func (cfg *Config) Start() error {
 	switch strings.ToLower(cfg.LogFormat) {
 	case "text":
 		log.SetFormatter(&log.TextFormatter{
-			TimestampFormat: time.RFC3339Nano,
+			TimestampFormat: rfc3339NanoFixed,
 		})
 	case "json":
 		log.SetFormatter(&log.JSONFormatter{
-			TimestampFormat: time.RFC3339Nano,
+			TimestampFormat: rfc3339NanoFixed,
 		})
 	default:
 		return fmt.Errorf(`unsupported log format %q (try "text" or "json")`, cfg.LogFormat)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list