File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use k8s_openapi::api::core::v1::Pod;
99use k8s_openapi:: chrono:: { Duration , Utc } ;
1010use kube:: api:: { DeleteParams , ListParams , LogParams , PropagationPolicy } ;
1111use kube:: { Api , ResourceExt } ;
12- use log:: { debug, info, warn} ;
12+ use log:: { debug, info, warn, trace } ;
1313use snafu:: { ensure, OptionExt , ResultExt } ;
1414use std:: env;
1515use std:: time:: { SystemTime , UNIX_EPOCH } ;
@@ -206,15 +206,16 @@ pub(crate) async fn archive_logs(k8s_client: kube::Client, job_name: &str) -> Jo
206206 SystemTime :: now( ) . duration_since( UNIX_EPOCH ) ?. as_secs( )
207207 ) ;
208208
209- client
209+ if client
210210 . create_log_stream ( )
211211 . log_group_name ( "testsys" )
212212 . log_stream_name ( & name)
213213 . send ( )
214214 . await
215- . context ( error:: CreateLogStreamSnafu {
216- log_stream : name. to_string ( ) ,
217- } ) ?;
215+ . is_err ( )
216+ {
217+ trace ! ( "Unable to create log group it is possible it already exists." ) ;
218+ }
218219
219220 client
220221 . put_log_events ( )
You can’t perform that action at this time.
0 commit comments