Skip to content

Commit

Permalink
fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Nov 19, 2024
1 parent 9b0f03b commit 461b068
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/slackdump/internal/export/v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func exportV3(ctx context.Context, sess *slackdump.Session, fsa fsadapter.FS, li
pb.Describe("OK")
lg.Debug("index written")
lg.InfoContext(ctx, "conversations export finished")
lg.DebugContext(ctx, "chunk files in: %s", tmpdir)
lg.DebugContext(ctx, "chunk files retained", "dir", tmpdir)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/slackdump/internal/workspace/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func createWsp(ctx context.Context, m manager, wsp string, confirm bool) error {
return fmt.Errorf("failed to select the default workpace: %s", err)
}
fmt.Fprintf(os.Stdout, "Success: added workspace %q\n", realname(wsp))
lg.DebugContext(ctx, "workspace type", "workspace", realname(wsp), fmt.Sprintf("%T", prov))
lg.DebugContext(ctx, "workspace type", "workspace", realname(wsp), "type", fmt.Sprintf("%T", prov))
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions internal/viewer/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ func (v *Viewer) threadHandler(w http.ResponseWriter, r *http.Request, id string
return
}

lg.DebugContext(ctx, "mm_count", len(mm))
lg.DebugContext(ctx, "Messages", "mm_count", len(mm))

ci, err := v.src.ChannelInfo(id)
if err != nil {
lg.ErrorContext(ctx, "error", err)
lg.ErrorContext(ctx, "ChannelInfo", "error", err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
Expand Down

0 comments on commit 461b068

Please sign in to comment.