Add support for syslog logging #405
rust-tests.yml
on: pull_request
check-formatting-linting
12s
tests
1m 36s
Annotations
3 errors and 10 warnings
this `else { if .. }` block can be collapsed:
pkcs11/src/config/logging.rs#L151
error: this `else { if .. }` block can be collapsed
--> pkcs11/src/config/logging.rs:151:16
|
151 | } else {
| ________________^
152 | | if let Ok(logger) = syslog::unix(formatter) {
153 | | syslog_logger = Some(BasicLogger::new(logger));
154 | | currently_logging = "Logging to standard Unix socket";
... |
157 | | }
158 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `-D clippy::collapsible-else-if` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_else_if)]`
help: collapse nested if block
|
151 ~ } else if let Ok(logger) = syslog::unix(formatter) {
152 + syslog_logger = Some(BasicLogger::new(logger));
153 + currently_logging = "Logging to standard Unix socket";
154 + } else {
155 + messages.push("Failed to create standard unix logger".to_string());
156 + }
|
|
this `else { if .. }` block can be collapsed:
pkcs11/src/config/logging.rs#L151
error: this `else { if .. }` block can be collapsed
--> pkcs11/src/config/logging.rs:151:16
|
151 | } else {
| ________________^
152 | | if let Ok(logger) = syslog::unix(formatter) {
153 | | syslog_logger = Some(BasicLogger::new(logger));
154 | | currently_logging = "Logging to standard Unix socket";
... |
157 | | }
158 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `-D clippy::collapsible-else-if` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_else_if)]`
help: collapse nested if block
|
151 ~ } else if let Ok(logger) = syslog::unix(formatter) {
152 + syslog_logger = Some(BasicLogger::new(logger));
153 + currently_logging = "Logging to standard Unix socket";
154 + } else {
155 + messages.push("Failed to create standard unix logger".to_string());
156 + }
|
|
check-formatting-linting
Clippy had exited with the 101 exit code
|
check-formatting-linting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
check-formatting-linting
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|