diff --git a/internal/api/album.go b/internal/api/album.go index 0a8bb2e47..7ea658b2d 100644 --- a/internal/api/album.go +++ b/internal/api/album.go @@ -530,6 +530,6 @@ func DownloadAlbum(router *gin.RouterGroup) { } } - log.Infof("download: created %s in %s", txt.Quote(zipFileName), time.Since(start)) + log.Infof("download: created %s [%s]", txt.Quote(zipFileName), time.Since(start)) }) } diff --git a/internal/api/zip.go b/internal/api/zip.go index 8977801e8..d6db6b251 100644 --- a/internal/api/zip.go +++ b/internal/api/zip.go @@ -126,7 +126,7 @@ func CreateZip(router *gin.RouterGroup) { elapsed := int(time.Since(start).Seconds()) - log.Infof("download: created %s in %s", txt.Quote(zipBaseName), time.Since(start)) + log.Infof("download: created %s [%s]", txt.Quote(zipBaseName), time.Since(start)) c.JSON(http.StatusOK, gin.H{"code": http.StatusOK, "message": i18n.Msg(i18n.MsgZipCreatedIn, elapsed), "filename": zipBaseName}) }) diff --git a/internal/classify/gen.go b/internal/classify/gen.go index 962a73e7f..4ad3ecc89 100644 --- a/internal/classify/gen.go +++ b/internal/classify/gen.go @@ -35,7 +35,7 @@ func main() { fileName := "rules.yml" if !fs.FileExists(fileName) { - log.Panicf("classify: label rules not found in %s", txt.Quote(filepath.Base(fileName))) + log.Panicf("classify: found no label rules in %s", txt.Quote(filepath.Base(fileName))) } yamlConfig, err := ioutil.ReadFile(fileName) diff --git a/internal/commands/backup.go b/internal/commands/backup.go index 1c24095ea..656f40a98 100644 --- a/internal/commands/backup.go +++ b/internal/commands/backup.go @@ -186,7 +186,7 @@ func backupAction(ctx *cli.Context) error { elapsed := time.Since(start) - log.Infof("backup completed in %s", elapsed) + log.Infof("backup completed [%s]", elapsed) conf.Shutdown() diff --git a/internal/commands/convert.go b/internal/commands/convert.go index 2a9746502..38a5683fc 100644 --- a/internal/commands/convert.go +++ b/internal/commands/convert.go @@ -58,7 +58,7 @@ func convertAction(ctx *cli.Context) error { elapsed := time.Since(start) - log.Infof("converting completed in %s", elapsed) + log.Infof("converting completed [%s]", elapsed) return nil } diff --git a/internal/commands/copy.go b/internal/commands/copy.go index 03ea06834..0c8e7cad4 100644 --- a/internal/commands/copy.go +++ b/internal/commands/copy.go @@ -71,7 +71,7 @@ func copyAction(ctx *cli.Context) error { elapsed := time.Since(start) - log.Infof("import completed in %s", elapsed) + log.Infof("import completed [%s]", elapsed) conf.Shutdown() return nil } diff --git a/internal/commands/faces.go b/internal/commands/faces.go index ad6ee46f9..de016ff98 100644 --- a/internal/commands/faces.go +++ b/internal/commands/faces.go @@ -99,7 +99,7 @@ func facesStatsAction(ctx *cli.Context) error { } else { elapsed := time.Since(start) - log.Infof("completed in %s", elapsed) + log.Infof("completed [%s]", elapsed) } conf.Shutdown() @@ -130,7 +130,7 @@ func facesAuditAction(ctx *cli.Context) error { } else { elapsed := time.Since(start) - log.Infof("completed in %s", elapsed) + log.Infof("completed [%s]", elapsed) } conf.Shutdown() @@ -174,7 +174,7 @@ func facesResetAction(ctx *cli.Context) error { } else { elapsed := time.Since(start) - log.Infof("completed in %s", elapsed) + log.Infof("completed [%s]", elapsed) } conf.Shutdown() @@ -212,7 +212,7 @@ func facesResetAllAction(ctx *cli.Context) error { } else { elapsed := time.Since(start) - log.Infof("completed in %s", elapsed) + log.Infof("completed [%s]", elapsed) } conf.Shutdown() @@ -312,7 +312,7 @@ func facesUpdateAction(ctx *cli.Context) error { } else { elapsed := time.Since(start) - log.Infof("completed in %s", elapsed) + log.Infof("completed [%s]", elapsed) } conf.Shutdown() diff --git a/internal/commands/import.go b/internal/commands/import.go index 1ec73e7a2..1d9920213 100644 --- a/internal/commands/import.go +++ b/internal/commands/import.go @@ -71,7 +71,7 @@ func importAction(ctx *cli.Context) error { elapsed := time.Since(start) - log.Infof("import completed in %s", elapsed) + log.Infof("import completed [%s]", elapsed) conf.Shutdown() return nil } diff --git a/internal/commands/moments.go b/internal/commands/moments.go index e2c51eb99..ce1e5697f 100644 --- a/internal/commands/moments.go +++ b/internal/commands/moments.go @@ -44,7 +44,7 @@ func momentsAction(ctx *cli.Context) error { } else { elapsed := time.Since(start) - log.Infof("completed in %s", elapsed) + log.Infof("completed [%s]", elapsed) } conf.Shutdown() diff --git a/internal/commands/optimize.go b/internal/commands/optimize.go index f9133dc06..7e90101d9 100644 --- a/internal/commands/optimize.go +++ b/internal/commands/optimize.go @@ -45,7 +45,7 @@ func optimizeAction(ctx *cli.Context) error { } else { elapsed := time.Since(start) - log.Infof("completed in %s", elapsed) + log.Infof("completed [%s]", elapsed) } conf.Shutdown()