Skip to content

Commit ef6d5ca

Browse files
committed
operator/ak-reg: Use warn!, not eprintln!
in consistency with remainder codebase Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
1 parent 7ae47da commit ef6d5ca

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

operator/src/attestation_key_register.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use kube::{
2525
watcher,
2626
},
2727
};
28-
use log::info;
28+
use log::{info, warn};
2929
use serde_json::json;
3030
use std::{collections::BTreeMap, sync::Arc, time::Duration};
3131

@@ -335,7 +335,7 @@ async fn secret_reconcile(
335335
.await
336336
.map(|_| Action::requeue(Duration::from_secs(300)))
337337
.map_err(|e| {
338-
eprintln!("Error updating attestation key volumes on secret apply: {e}");
338+
warn!("Error updating attestation key volumes on secret apply: {e}");
339339
finalizer::Error::<ControllerError>::ApplyFailed(e.into())
340340
})
341341
}
@@ -349,9 +349,7 @@ async fn secret_reconcile(
349349
.await
350350
.map(|_| Action::requeue(Duration::from_secs(300)))
351351
.map_err(|e| {
352-
eprintln!(
353-
"Error updating attestation key volumes during secret deletion: {e}"
354-
);
352+
warn!("Error updating attestation key volumes during secret deletion: {e}");
355353
finalizer::Error::<ControllerError>::CleanupFailed(e.into())
356354
})
357355
}

0 commit comments

Comments
 (0)