Skip to content

Commit

Permalink
delete error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisbisset committed Dec 20, 2024
1 parent 777f588 commit caf2b39
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion cmd/templ/generatecmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ func (cmd Generate) Run(ctx context.Context) (err error) {
defer func() { <-sem }()
goUpdated, textUpdated, err := fseh.HandleEvent(ctx, event)
if err != nil {
// cmd.Log.Error("Event handler failed", slog.Any("error", err))
errs <- err
}
if goUpdated || textUpdated {
Expand Down
5 changes: 0 additions & 5 deletions cmd/templ/generatecmd/eventhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ func (h *FSEventHandler) HandleEvent(ctx context.Context, event fsnotify.Event)
start := time.Now()
goUpdated, textUpdated, diag, err := h.generate(ctx, event.Name)
if err != nil {
// h.Log.Error(
// "Error generating code",
// slog.String("file", event.Name),
// slog.Any("error", err),
// )
h.SetError(event.Name, true)
return goUpdated, textUpdated, fmt.Errorf("failed to generate code for %q: %w", event.Name, err)
}
Expand Down

0 comments on commit caf2b39

Please sign in to comment.