diff --git a/pkg/database/init.go b/pkg/database/init.go index 627a470..a8aea48 100644 --- a/pkg/database/init.go +++ b/pkg/database/init.go @@ -32,9 +32,10 @@ func InitDefaultDatabase() (*gorm.DB, error) { db.Logger = logger.New( log.New(os.Stdout, "\r\n", log.LstdFlags), logger.Config{ - SlowThreshold: time.Second, - LogLevel: logger.Warn, - Colorful: true, + SlowThreshold: time.Second, + LogLevel: logger.Warn, + Colorful: true, + IgnoreRecordNotFoundError: true, }, ) return db, nil