Code Review
/
ric-plt
/
appmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge DOC changes to master
[ric-plt/appmgr.git]
/
cmd
/
appmgr
/
logger.go
diff --git
a/cmd/appmgr/logger.go
b/cmd/appmgr/logger.go
index
b8a7475
..
d1bcf15
100755
(executable)
--- a/
cmd/appmgr/logger.go
+++ b/
cmd/appmgr/logger.go
@@
-20,9
+20,9
@@
package main
import (
package main
import (
+ mdclog "gerrit.o-ran-sc.org/r/com/golog"
"net/http"
"time"
"net/http"
"time"
- mdclog "gerrit.o-ran-sc.org/r/com/golog"
)
type Log struct {
)
type Log struct {
@@
-45,22
+45,22
@@
func (l *Log) SetMdc(key string, value string) {
}
func (l *Log) Error(pattern string, args ...interface{}) {
}
func (l *Log) Error(pattern string, args ...interface{}) {
- l.SetMdc("time", time.Now().Format(
"2019-01-02 15:04:05"
))
+ l.SetMdc("time", time.Now().Format(
time.RFC3339
))
l.logger.Error(pattern, args...)
}
func (l *Log) Warn(pattern string, args ...interface{}) {
l.logger.Error(pattern, args...)
}
func (l *Log) Warn(pattern string, args ...interface{}) {
- l.SetMdc("time", time.Now().Format(
"2019-01-02 15:04:05"
))
+ l.SetMdc("time", time.Now().Format(
time.RFC3339
))
l.logger.Warning(pattern, args...)
}
func (l *Log) Info(pattern string, args ...interface{}) {
l.logger.Warning(pattern, args...)
}
func (l *Log) Info(pattern string, args ...interface{}) {
- l.SetMdc("time", time.Now().Format(
"2019-01-02 15:04:05"
))
+ l.SetMdc("time", time.Now().Format(
time.RFC3339
))
l.logger.Info(pattern, args...)
}
func (l *Log) Debug(pattern string, args ...interface{}) {
l.logger.Info(pattern, args...)
}
func (l *Log) Debug(pattern string, args ...interface{}) {
- l.SetMdc("time", time.Now().Format(
"2019-01-02 15:04:05"
))
+ l.SetMdc("time", time.Now().Format(
time.RFC3339
))
l.logger.Debug(pattern, args...)
}
l.logger.Debug(pattern, args...)
}