From 4a62b452bd6d81a49ac5ed1833f886fe56113cce Mon Sep 17 00:00:00 2001
From: RandomChars <random@chars.jp>
Date: Sun, 3 Oct 2021 18:03:55 +0900
Subject: [PATCH] improve logging

---
 store/tag.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/store/tag.go b/store/tag.go
index 368bdd3..24d1f09 100644
--- a/store/tag.go
+++ b/store/tag.go
@@ -5,6 +5,7 @@ import (
 	"fmt"
 	log "github.com/sirupsen/logrus"
 	"os"
+	"strings"
 	"time"
 )
 
@@ -149,7 +150,7 @@ func (s *Store) TagType(tag, t string) {
 	}
 
 	if !TagTypeAllowed(t) {
-		log.Warnf("Invalid tag change on tag %s, got %s, expecting %s", tag, t, AllowedTagTypes)
+		log.Warnf("Invalid tag change on tag %s, got %s, expecting one of %s.", tag, t, strings.Join(AllowedTagTypes, ", "))
 		return
 	}
 	info := s.TagInfo(tag)
-- 
GitLab