Skip to content

Commit

Permalink
Fix: Spread log level over all crates (#1535)
Browse files Browse the repository at this point in the history
Code provided by @nichtsfrei Philipp Eder
Jira: SC-980
  • Loading branch information
jjnicola authored Dec 14, 2023
1 parent 98ecd87 commit 64d3035
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/notus/src/notus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ where
fn signature_check (&self) -> Result<(), Error> {
if self.signature_check {
match self.loader.verify_signature() {
Ok(_) => tracing::info!("Signature check succsessful"),
Ok(_) => tracing::debug!("Signature check succsessful"),
Err(feed::VerifyError::MissingKeyring) => {
tracing::warn!("Signature check enabled but missing keyring");
return Err(Error::SignatureCheckError(feed::VerifyError::MissingKeyring));
Expand Down
2 changes: 1 addition & 1 deletion rust/openvasd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let config = config::Config::load();
let filter = tracing_subscriber::EnvFilter::builder()
.with_default_directive(tracing::metadata::LevelFilter::INFO.into())
.parse_lossy(format!("info,openvasd={}", &config.log.level));
.parse_lossy(format!("{},rustls=info", &config.log.level));
tracing::debug!("config: {:?}", config);
tracing_subscriber::fmt().with_env_filter(filter).init();
if !config.ospd.socket.exists() {
Expand Down

0 comments on commit 64d3035

Please sign in to comment.