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;
9
9
use k8s_openapi:: chrono:: { Duration , Utc } ;
10
10
use kube:: api:: { DeleteParams , ListParams , LogParams , PropagationPolicy } ;
11
11
use kube:: { Api , ResourceExt } ;
12
- use log:: { debug, info, warn} ;
12
+ use log:: { debug, info, trace , warn} ;
13
13
use snafu:: { ensure, OptionExt , ResultExt } ;
14
14
use std:: env;
15
15
use std:: time:: { SystemTime , UNIX_EPOCH } ;
@@ -206,15 +206,16 @@ pub(crate) async fn archive_logs(k8s_client: kube::Client, job_name: &str) -> Jo
206
206
SystemTime :: now( ) . duration_since( UNIX_EPOCH ) ?. as_secs( )
207
207
) ;
208
208
209
- client
209
+ if client
210
210
. create_log_stream ( )
211
211
. log_group_name ( "testsys" )
212
212
. log_stream_name ( & name)
213
213
. send ( )
214
214
. 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
+ }
218
219
219
220
client
220
221
. put_log_events ( )
You can’t perform that action at this time.
0 commit comments