fix log output
This commit is contained in:
parent
3691890b95
commit
f984c69100
@ -29,7 +29,6 @@ func Stats() {
|
|||||||
client := storageConnect()
|
client := storageConnect()
|
||||||
coll := &Collection{client.Database("serra").Collection("cards")}
|
coll := &Collection{client.Database("serra").Collection("cards")}
|
||||||
totalcoll := &Collection{client.Database("serra").Collection("total")}
|
totalcoll := &Collection{client.Database("serra").Collection("total")}
|
||||||
l := Logger()
|
|
||||||
defer storageDisconnect(client)
|
defer storageDisconnect(client)
|
||||||
|
|
||||||
// Show Value Stats
|
// Show Value Stats
|
||||||
@ -52,10 +51,10 @@ func Stats() {
|
|||||||
|
|
||||||
// Show cards added per month
|
// Show cards added per month
|
||||||
showCardsAddedPerMonth(coll)
|
showCardsAddedPerMonth(coll)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func showValueStats(coll *Collection, totalcoll *Collection) {
|
func showValueStats(coll *Collection, totalcoll *Collection) {
|
||||||
|
l := Logger()
|
||||||
// Value and Card Numbers
|
// Value and Card Numbers
|
||||||
stats, _ := coll.storageAggregate(mongo.Pipeline{
|
stats, _ := coll.storageAggregate(mongo.Pipeline{
|
||||||
bson.D{
|
bson.D{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user