mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-25 10:33:45 +02:00
Fix code formatting
This commit is contained in:
parent
b0e5b455ca
commit
adb1ad3c6d
21 changed files with 884 additions and 950 deletions
|
|
@ -1,20 +1,18 @@
|
|||
|
||||
package utils
|
||||
|
||||
import (
|
||||
log "github.com/inconshreveable/log15"
|
||||
log "github.com/inconshreveable/log15"
|
||||
)
|
||||
|
||||
func ParseLogFormatter(name string) log.Format {
|
||||
|
||||
switch name {
|
||||
case "logfmt" :
|
||||
return log.LogfmtFormat()
|
||||
case "json" :
|
||||
return log.JsonFormat()
|
||||
case "json-pretty" :
|
||||
return log.JsonFormatEx(true, true)
|
||||
default :
|
||||
return log.TerminalFormat()
|
||||
}
|
||||
switch name {
|
||||
case "logfmt":
|
||||
return log.LogfmtFormat()
|
||||
case "json":
|
||||
return log.JsonFormat()
|
||||
case "json-pretty":
|
||||
return log.JsonFormatEx(true, true)
|
||||
default:
|
||||
return log.TerminalFormat()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue