From dcbd275c189d31096c27670d90c42d37fe3f229f Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Thu, 19 Oct 2023 14:30:35 +0200 Subject: [PATCH] Set increase/decrease log level to warn --- src/serra/helpers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/serra/helpers.go b/src/serra/helpers.go index 3bf0c04..37713df 100644 --- a/src/serra/helpers.go +++ b/src/serra/helpers.go @@ -71,16 +71,16 @@ func modifyCardCount(coll *Collection, c *Card, amount int64, foil bool) error { if foil { total = storedCard.SerraCountFoil + amount 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 { - 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 { total = storedCard.SerraCount + amount 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 { - 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) } }