Logs: Tweak messages and log levels for improved readability

This commit is contained in:
Michael Mayer
2021-10-02 14:24:44 +02:00
parent 8ebedf2f7d
commit 9a88d7fc6a
32 changed files with 123 additions and 116 deletions

View File

@@ -57,7 +57,7 @@ func resetAction(ctx *cli.Context) error {
entity.Admin.InitPassword(conf.AdminPassword())
}
log.Infof("database reset completed in %s", time.Since(start))
log.Infof("database reset completed [%s]", time.Since(start))
} else {
log.Infof("keeping index database")
}
@@ -89,7 +89,7 @@ func resetAction(ctx *cli.Context) error {
fmt.Println("")
log.Infof("removed json files in %s", time.Since(start))
log.Infof("removed json files [%s]", time.Since(start))
} else {
log.Infof("no json files found")
}
@@ -124,7 +124,7 @@ func resetAction(ctx *cli.Context) error {
fmt.Println("")
log.Infof("removed files in %s", time.Since(start))
log.Infof("removed files [%s]", time.Since(start))
} else {
log.Infof("no metadata backups found for removal")
}
@@ -159,7 +159,7 @@ func resetAction(ctx *cli.Context) error {
fmt.Println("")
log.Infof("removed files in %s", time.Since(start))
log.Infof("removed files [%s]", time.Since(start))
} else {
log.Infof("no album backups found for removal")
}