mirror of
https://github.com/Quiq/docker-registry-ui
synced 2025-10-28 17:21:45 +08:00
Amend tag info page, change logging.
* Amend representation of the tag info page * Change logging library, add "-log-level" argument and put most of the logging into DEBUG mode
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/hhkbp2/go-logging"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/tidwall/gjson"
|
||||
)
|
||||
|
||||
@@ -36,7 +36,7 @@ func (p timeSlice) Swap(i, j int) {
|
||||
func PurgeOldTags(client *Client, purgeDryRun bool, purgeTagsKeepDays, purgeTagsKeepCount int) {
|
||||
logger := SetupLogging("registry.tasks.PurgeOldTags")
|
||||
// Reduce client logging.
|
||||
client.logger.SetLevel(logging.LevelError)
|
||||
client.logger.Logger.SetLevel(logrus.ErrorLevel)
|
||||
|
||||
dryRunText := ""
|
||||
if purgeDryRun {
|
||||
|
||||
Reference in New Issue
Block a user