Update log.go
This commit is contained in:
parent
0e2708842e
commit
a3e16860c6
|
@ -16,7 +16,7 @@ func init(){
|
||||||
|
|
||||||
func LogTimestamp(value bool) {
|
func LogTimestamp(value bool) {
|
||||||
logger.SetFormatter(&logger.TextFormatter{
|
logger.SetFormatter(&logger.TextFormatter{
|
||||||
DisableTimestamp: value,
|
DisableTimestamp: !value,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// LogHTTP to add information of a httprequest to log
|
// LogHTTP to add information of a httprequest to log
|
||||||
|
|
Reference in New Issue