From 5f35b57eb49a49194c3346cb5e69037b4b894deb Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 20 Nov 2024 19:19:17 +0200 Subject: [PATCH] Remove logs from expense.go in db package --- db/expense.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/db/expense.go b/db/expense.go index 24651bd..a68c08c 100644 --- a/db/expense.go +++ b/db/expense.go @@ -2,7 +2,6 @@ package db import ( "errors" - "log" "time" "gorm.io/gorm" @@ -43,7 +42,6 @@ var ( ) func (e *Expense) BeforeCreate(tx *gorm.DB) error { - log.Printf("BeforeCreate") card := &Card{} if err := tx.Find(card, e.CardID).Error; err != nil { return err @@ -63,9 +61,6 @@ func (e *Expense) BeforeCreate(tx *gorm.DB) error { if err := tx.Find(typ, e.TypeID).Error; err != nil { return err } - log.Printf("e.UserID = %d\n", e.UserID) - log.Printf("e.TypeID= %d\n", e.TypeID) - log.Printf("typ.UserID= %d\n", typ.UserID) if typ.UserID != e.UserID { return ERROR_EXPENSE_INVALID_TYPE_USERID }