Skip to content

Commit

Permalink
Make iotedge check respect journald as valid log rotation setting.
Browse files Browse the repository at this point in the history
See issue #6728
  • Loading branch information
mtrensch committed Oct 20, 2022
1 parent fa1800e commit 8ac2292
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ impl ContainerEngineLogrotate {
return Ok(CheckResult::Warning(anyhow!(MESSAGE)));
}

if daemon_config.log_driver == Option::Some("journald".to_string()) {
return Ok(CheckResult::Ok);
}

if let Some(log_opts) = &daemon_config.log_opts {
if log_opts.max_file.is_none() {
return Ok(CheckResult::Warning(anyhow!(MESSAGE)));
Expand Down

0 comments on commit 8ac2292

Please sign in to comment.