-
Couldn't load subscription status.
- Fork 1.3k
feat: support file logging with tracing #1992
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -148,6 +148,8 @@ pub fn define_command_line_options(mut app: Command) -> Command { | |
| .arg( | ||
| Arg::new("LOG_CONFIG") | ||
| .long("log-config") | ||
| // deprecated for removal | ||
| .hide(true) | ||
| .num_args(1) | ||
| .action(ArgAction::Set) | ||
| .value_parser(clap::value_parser!(PathBuf)) | ||
|
|
@@ -297,7 +299,7 @@ pub fn create(matches: &ArgMatches) -> ShadowsocksResult<(Runtime, impl Future<O | |
| logging::init_with_file(path); | ||
| } | ||
| None => { | ||
| logging::init_with_config("sslocal", &service_config.log); | ||
| logging::init_with_config("ssmanager", &service_config.log); | ||
|
Comment on lines
-300
to
+302
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. I believe this was a copy-paste error, same for the other one. |
||
| } | ||
| } | ||
|
|
||
|
|
||
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.
Please advice if you think there is a better way to handle this.