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

@@ -126,7 +126,7 @@ func CreateZip(router *gin.RouterGroup) {
elapsed := int(time.Since(start).Seconds())
log.Infof("download: zip %s created in %s", txt.Quote(zipBaseName), time.Since(start))
log.Infof("download: created %s in %s", txt.Quote(zipBaseName), time.Since(start))
c.JSON(http.StatusOK, gin.H{"code": http.StatusOK, "message": i18n.Msg(i18n.MsgZipCreatedIn, elapsed), "filename": zipBaseName})
})