-
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
Use Config File to Drive Components Log Configuration #1851
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's some confusion here. The --log-file
flag is for directing log messages to a file rather than stdout. It shouldn't read a log configuration from that file.
The LogConfig
should be part of the regular configuration file. And those log options shouldn't be an alternative to the default options, they should just be applied after the default options have been set.
Second part is fixed, but the logger we are using, pretty_env_logger, doesn't have a feature to save logs to a file. Should we change the logger? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting closer. Still need the --log-file
flag (or a comment saying why it isn't possible).
the logger we are using, pretty_env_logger, doesn't have a feature to save logs to a file. Should we change the logger? |
|
The only targets that can be used by |
Ah, the |
Co-authored-by: David Himmelstrup <david.himmelstrup@chainsafe.io>
* add flag to cliopts * and options to config * move exit logig to sync_from_snapshot * rename to match lotus cli * changes for testing; move halt to after import chain * verify that rocksdb is dropped * requested changes and remove testing logs * move comment * default rocks log level debug -> warn * fix workflow errors
…1816) Co-authored-by: David Himmelstrup <david.himmelstrup@chainsafe.io>
Co-authored-by: Hubert <hubert@chainsafe.io>
Co-authored-by: David Himmelstrup <david.himmelstrup@chainsafe.io>
* most changes * requested change * fix fmt * new ways: delete claus, version_schedule, sort * fix lint * requested changes * compile time check * from implementation * requested changes * requested changes * requested changes * requested changes * requested changes * delete Claus from deleg cns config
Co-authored-by: David Himmelstrup <david.himmelstrup@chainsafe.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something definitely went wrong while resolving conflicts.
@tyshko5 The dictionary is still wrong. Look at the changes to see why. |
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes #1520
Other information and links