Skip to content

Commit

Permalink
change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Jun 23, 2024
1 parent 403d531 commit 474695c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/svc/svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type ServiceContext struct {

func NewServiceContext(ctx context.Context, cfg *types.Config) *ServiceContext {
storage, err := gorm.Open(postgres.Open(cfg.PostgresqlDataSource), &gorm.Config{
Logger: logger.Default.LogMode(logger.Info),
Logger: logger.Default.LogMode(logger.Error),
})
if err != nil {
log.Panicf("[svc]gorm get db panic: %s\n", err)
Expand Down

0 comments on commit 474695c

Please sign in to comment.