-
Notifications
You must be signed in to change notification settings - Fork 159
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
Remove crate name from logs #4649
Comments
@ansermino I wouldn't say this should be removed. It's an important part of the path. While in a happy path,
That said, it might make sense to shorten it to just |
@LesnyRumcajs Whats the utility of these paths in the logs? What purpose (and who) do they serve? Shortening to |
It helps with parsing post-factum the logs. Say, you'd like to get logs from the p2p layer of Forest (but not the nitty-gritty details from rust-libp2p) - you could do
You could do |
In your example it seems there would still be a clear distinction between the modules, it just requires the right module name(s) to be queried (eg. This also touches on a philosophical question—who are the logs for? Forest devs or users? It's presumably a bit of both, but it does seem sensible to optimize for the majority (users) in most cases. We might consider hiding the full path behind a config option, or adding more stack traces to error logs. Replacing |
On the philosophical question - logs of INFO and above levels are for devs AND users, anything below - strictly for devs. In any case, I'd make drastic changes if there's a strict requirement from node providers (it may also include even further shortening the logs for data retention savings, e.g., DEBUG - D, INFO - I...). I'm for shortening to |
Issue summary
Forest's logs are seemingly bloated with
forest_filecoin
.This should be omitted to improve readability.
The text was updated successfully, but these errors were encountered: