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

@@ -66,10 +66,10 @@ func BatchPhotosArchive(router *gin.RouterGroup) {
}
// Update precalculated photo and file counts.
logError("photos", entity.UpdatePhotoCounts())
logWarn("index", entity.UpdateCounts())
// Update album, subject, and label cover thumbs.
logError("photos", query.UpdateCovers())
logWarn("index", query.UpdateCovers())
UpdateClientConfig()
@@ -128,10 +128,10 @@ func BatchPhotosRestore(router *gin.RouterGroup) {
}
// Update precalculated photo and file counts.
logError("photos", entity.UpdatePhotoCounts())
logWarn("index", entity.UpdateCounts())
// Update album, subject, and label cover thumbs.
logError("photos", query.UpdateCovers())
logWarn("index", query.UpdateCovers())
UpdateClientConfig()
@@ -264,7 +264,7 @@ func BatchPhotosPrivate(router *gin.RouterGroup) {
}
// Update precalculated photo and file counts.
logError("photos", entity.UpdatePhotoCounts())
logWarn("index", entity.UpdateCounts())
if photos, err := query.PhotoSelection(f); err == nil {
for _, p := range photos {
@@ -382,7 +382,7 @@ func BatchPhotosDelete(router *gin.RouterGroup) {
// Any photos deleted?
if len(deleted) > 0 {
// Update precalculated photo and file counts.
logError("photos", entity.UpdatePhotoCounts())
logWarn("index", entity.UpdateCounts())
UpdateClientConfig()