Skip to content

Commit

Permalink
chore(scheduler): add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Sep 6, 2023
1 parent 107e8ad commit 2f5bf65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/scheduler/internal/services/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/samber/lo"
model "github.com/satont/twir/libs/gomodels"
"github.com/satont/twir/libs/grpc/generated/parser"
"go.uber.org/zap"
"google.golang.org/protobuf/types/known/emptypb"
"gorm.io/gorm"
)
Expand Down Expand Up @@ -100,6 +101,7 @@ func (c *Commands) CreateDefaultCommands(ctx context.Context, usersIds []string)
WithContext(ctx).
Create(newCmd).
Error; err != nil {
zap.S().Error("cannot create default command", zap.Error(err), zap.Any("command", newCmd))
return err
}
}
Expand Down

0 comments on commit 2f5bf65

Please sign in to comment.