|
|
@ -53,10 +53,6 @@ const ( |
|
|
|
|
|
|
|
// settings
|
|
|
|
var ( |
|
|
|
// BuildTime information should only be set by -ldflags.
|
|
|
|
BuildTime string |
|
|
|
BuildGitHash string |
|
|
|
|
|
|
|
// AppVer settings
|
|
|
|
AppVer string |
|
|
|
AppName string |
|
|
@ -642,11 +638,6 @@ var logLevels = map[string]string{ |
|
|
|
func newLogService() { |
|
|
|
log.Info("%s %s", AppName, AppVer) |
|
|
|
|
|
|
|
if len(BuildTime) > 0 { |
|
|
|
log.Info("Build Time: %s", BuildTime) |
|
|
|
log.Info("Build Git Hash: %s", BuildGitHash) |
|
|
|
} |
|
|
|
|
|
|
|
// Get and check log mode.
|
|
|
|
LogModes = strings.Split(Cfg.Section("log").Key("MODE").MustString("console"), ",") |
|
|
|
LogConfigs = make([]string, len(LogModes)) |
|
|
|