From f984c691002a8583701a58e301a2e22ed44f4df4 Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Tue, 19 Mar 2024 11:10:36 +0100 Subject: [PATCH] fix log output --- pkg/serra/stats.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/serra/stats.go b/pkg/serra/stats.go index 90b6a41..5336f88 100644 --- a/pkg/serra/stats.go +++ b/pkg/serra/stats.go @@ -29,7 +29,6 @@ func Stats() { client := storageConnect() coll := &Collection{client.Database("serra").Collection("cards")} totalcoll := &Collection{client.Database("serra").Collection("total")} - l := Logger() defer storageDisconnect(client) // Show Value Stats @@ -52,10 +51,10 @@ func Stats() { // Show cards added per month showCardsAddedPerMonth(coll) - } func showValueStats(coll *Collection, totalcoll *Collection) { + l := Logger() // Value and Card Numbers stats, _ := coll.storageAggregate(mongo.Pipeline{ bson.D{