Set filenames properly

This commit is contained in:
Ben Sarmiento
2024-01-28 03:48:53 +01:00
parent 3d9ad6a791
commit 00e4f8013c
3 changed files with 9 additions and 7 deletions

View File

@@ -29,15 +29,15 @@ func MainApp(configPath string) {
log := logutil.NewLogger(logPath)
zurglog := log.Named("zurg")
if log.Level() == zapcore.DebugLevel {
zurglog.Infof("debug logging is enabled; if you are not debugging please set LOG_LEVEL=info in your environment")
}
zurglog.Debugf("PID: %d", os.Getpid())
zurglog.Infof("Version: %s", version.GetVersion())
zurglog.Infof("GitCommit: %s", version.GetGitCommit())
zurglog.Infof("BuiltAt: %s", version.GetBuiltAt())
if log.Level() == zapcore.DebugLevel {
zurglog.Infof("Debug logging is enabled; if you are not debugging please set LOG_LEVEL=info in your environment")
}
config, configErr := config.LoadZurgConfig(configPath, log.Named("config"))
if configErr != nil {
zurglog.Errorf("Config failed to load: %v", configErr)