File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
crates/stackable-operator/src/builder/pod Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ use k8s_openapi::{
1010 apimachinery:: pkg:: { api:: resource:: Quantity , apis:: meta:: v1:: ObjectMeta } ,
1111} ;
1212use snafu:: { OptionExt , ResultExt , Snafu } ;
13- use tracing:: warn;
1413
1514use crate :: {
1615 builder:: {
@@ -609,19 +608,19 @@ impl PodBuilder {
609608
610609 pod_spec
611610 . check_resource_requirement ( ResourceRequirementsType :: Limits , "cpu" )
612- . unwrap_or_else ( |err| warn ! ( "{}" , err ) ) ;
611+ . unwrap_or_else ( |err| tracing :: warn!( "{err}" ) ) ;
613612
614613 pod_spec
615614 . check_resource_requirement ( ResourceRequirementsType :: Limits , "memory" )
616- . unwrap_or_else ( |err| warn ! ( "{}" , err ) ) ;
615+ . unwrap_or_else ( |err| tracing :: warn!( "{err}" ) ) ;
617616
618617 pod_spec
619618 . check_limit_to_request_ratio ( & ComputeResource :: Cpu , LIMIT_REQUEST_RATIO_CPU )
620- . unwrap_or_else ( |err| warn ! ( "{}" , err ) ) ;
619+ . unwrap_or_else ( |err| tracing :: warn!( "{err}" ) ) ;
621620
622621 pod_spec
623622 . check_limit_to_request_ratio ( & ComputeResource :: Memory , LIMIT_REQUEST_RATIO_MEMORY )
624- . unwrap_or_else ( |err| warn ! ( "{}" , err ) ) ;
623+ . unwrap_or_else ( |err| tracing :: warn!( "{err}" ) ) ;
625624
626625 pod_spec
627626 }
You can’t perform that action at this time.
0 commit comments