Set increase/decrease log level to warn

This commit is contained in:
Florian Baumann 2023-10-19 14:30:35 +02:00
parent 4cb840558f
commit dcbd275c18

View File

@ -71,16 +71,16 @@ func modifyCardCount(coll *Collection, c *Card, amount int64, foil bool) error {
if foil { if foil {
total = storedCard.SerraCountFoil + amount total = storedCard.SerraCountFoil + amount
if amount < 0 { if amount < 0 {
l.Infof("Reduced card amount of \"%s\" (foil) from %d to %d", storedCard.Name, storedCard.SerraCountFoil, total) l.Warnf("Reduced card amount of \"%s\" (foil) from %d to %d", storedCard.Name, storedCard.SerraCountFoil, total)
} else { } else {
l.Infof("Increased card amount of \"%s\" (foil) from %d to %d", storedCard.Name, storedCard.SerraCountFoil, total) l.Warnf("Increased card amount of \"%s\" (foil) from %d to %d", storedCard.Name, storedCard.SerraCountFoil, total)
} }
} else { } else {
total = storedCard.SerraCount + amount total = storedCard.SerraCount + amount
if amount < 0 { if amount < 0 {
l.Infof("Reduced card amount of \"%s\" from %d to %d", storedCard.Name, storedCard.SerraCount, total) l.Warnf("Reduced card amount of \"%s\" from %d to %d", storedCard.Name, storedCard.SerraCount, total)
} else { } else {
l.Infof("Increased card amount of \"%s\" from %d to %d", storedCard.Name, storedCard.SerraCount, total) l.Warnf("Increased card amount of \"%s\" from %d to %d", storedCard.Name, storedCard.SerraCount, total)
} }
} }