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::{
10
10
apimachinery:: pkg:: { api:: resource:: Quantity , apis:: meta:: v1:: ObjectMeta } ,
11
11
} ;
12
12
use snafu:: { OptionExt , ResultExt , Snafu } ;
13
- use tracing:: warn;
14
13
15
14
use crate :: {
16
15
builder:: {
@@ -609,19 +608,19 @@ impl PodBuilder {
609
608
610
609
pod_spec
611
610
. check_resource_requirement ( ResourceRequirementsType :: Limits , "cpu" )
612
- . unwrap_or_else ( |err| warn ! ( "{}" , err ) ) ;
611
+ . unwrap_or_else ( |err| tracing :: warn!( "{err}" ) ) ;
613
612
614
613
pod_spec
615
614
. check_resource_requirement ( ResourceRequirementsType :: Limits , "memory" )
616
- . unwrap_or_else ( |err| warn ! ( "{}" , err ) ) ;
615
+ . unwrap_or_else ( |err| tracing :: warn!( "{err}" ) ) ;
617
616
618
617
pod_spec
619
618
. 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}" ) ) ;
621
620
622
621
pod_spec
623
622
. 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}" ) ) ;
625
624
626
625
pod_spec
627
626
}
You can’t perform that action at this time.
0 commit comments