Updated Operator logging to use Golang RFC3339
This should make it easier to use a standard to parse/filter over
Kubernetes logs.
Also removed some dead code.
@@ -60,13 +60,9 @@ func CrunchyLogger(logDetails LogValues) {
}
return fmt.Sprintf("%s()", function), fmt.Sprintf("%s:%d", filename, f.Line)
},
- //ForceColors: true,
FullTimestamp: true,
- //DisableTruncation: true,
}
- crunchyTextFormatter.TimestampFormat = "2006-01-02 15:04:05 -0700"
-
log.SetFormatter(&formatter{
fields: log.Fields{
"version": logDetails.version,
