-
Notifications
You must be signed in to change notification settings - Fork 87
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
revert: removes date from & symlink to log files #394
Changes from 2 commits
24cf565
dc9f840
fa071fd
8c55876
f033ba2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1231,10 +1231,12 @@ fn build_with_store_internal( | |
}) | ||
} | ||
|
||
/// Sets up the node logger, creating a new log file if it does not exist, or utilizing | ||
/// the existing log file. | ||
fn setup_logger(config: &Config) -> Result<Arc<FilesystemLogger>, BuildError> { | ||
let log_dir = match &config.log_dir_path { | ||
Some(log_dir) => String::from(log_dir), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: This variable names should be adjusted to reflect it's now a file path, not the dir path anymore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apologies for this. I'll address in another PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No worries at all, let's just include a fixup commit in whatever logging-related PR you open next! |
||
None => config.storage_dir_path.clone() + "/logs", | ||
None => config.storage_dir_path.clone(), | ||
}; | ||
|
||
Ok(Arc::new( | ||
|
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.
Github won't comment on the line below this, but let's drop the
{storage_path_dir}/logs
folder now that we'll only have one log file. Rather, let's just default to{storage_path_dir}/ldk_node.log
.