Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retrieval activity logs #41

Closed
wants to merge 5 commits into from
Closed

Conversation

juliangruber
Copy link
Member

@juliangruber juliangruber commented Nov 17, 2023

To help Station operators understand what's going on

@juliangruber
Copy link
Member Author

@juliangruber
Copy link
Member Author

Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; with a few suggestions that can be applied in a follow-up PR if you like.

lib/spark.js Outdated Show resolved Hide resolved
lib/spark.js Show resolved Hide resolved
lib/spark.js Outdated Show resolved Hide resolved
@bajtos
Copy link
Member

bajtos commented Nov 20, 2023

On the second though, I am not sure if this PR is a good idea. I think we will overload the user with too many detailed messages that will make it difficult to notice the important ones.

If we want to show progress, then aggregated information printed once every X seconds is a better approach, IMO. We are already discussing new activity logs here: filecoin-station/desktop#1123

To allow our users to troubleshoot Station behaviour in details, the current "Save Module Logs as" approach is IMO better. We can review what messages is SPARK printing to this log file via console.log and console.error APIs and add more logging where needed.

Thoughts?

/cc @patrickwoodhead

@juliangruber
Copy link
Member Author

I agree that showing summaries is more effective from a data perspective than reporting any individual retrieval. Let's revisit in our call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants