@@ -214,24 +214,25 @@ impl Enclave {
214
214
}
215
215
216
216
fn start_odyn_log_stream ( & mut self , cid : u32 ) -> Result < ( ) > {
217
- self . tasks . push ( utils:: spawn!( "odyn log stream" , async move {
218
- info!( "waiting for enclave to boot to stream logs" ) ;
219
- let conn = loop {
220
- match VsockStream :: connect( cid, APP_LOG_PORT ) . await {
221
- Ok ( conn) => break conn,
222
-
223
- // TODO: improve the polling frequency / backoff / timeout
224
- Err ( _) => {
225
- tokio:: time:: sleep( LOG_VSOCK_RETRY_INTERVAL ) . await ;
217
+ self . tasks
218
+ . push ( utils:: spawn!( "odyn log stream" , async move {
219
+ info!( "waiting for enclave to boot to stream logs" ) ;
220
+ let conn = loop {
221
+ match VsockStream :: connect( cid, APP_LOG_PORT ) . await {
222
+ Ok ( conn) => break conn,
223
+
224
+ // TODO: improve the polling frequency / backoff / timeout
225
+ Err ( _) => {
226
+ tokio:: time:: sleep( LOG_VSOCK_RETRY_INTERVAL ) . await ;
227
+ }
226
228
}
227
- }
228
- } ;
229
+ } ;
229
230
230
- info!( "connected to enclave, starting log stream" ) ;
231
- if let Err ( e) = utils:: log_lines_from_stream( "enclave" , conn) . await {
232
- error!( "error reading log lines from enclave: {e}" ) ;
233
- }
234
- } ) ?) ;
231
+ info!( "connected to enclave, starting log stream" ) ;
232
+ if let Err ( e) = utils:: log_lines_from_stream( "enclave" , conn) . await {
233
+ error!( "error reading log lines from enclave: {e}" ) ;
234
+ }
235
+ } ) ?) ;
235
236
236
237
Ok ( ( ) )
237
238
}
0 commit comments