@@ -115,24 +115,24 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs ar
115115if ( rpcController . GetState ( ) . RpcLifecycle == RpcLifecycle . Disconnected )
116116// Passing in a CT with no cancellation is desired here, because
117117// the named pipe open will block until the pipe comes up.
118- // TODO: log
119- _ = rpcController . Reconnect ( CancellationToken . None ) . ContinueWith ( t=>
118+ _logger . LogDebug ( "reconnecting with VPN service" ) ;
119+ _ = rpcController . Reconnect ( CancellationToken . None ) . ContinueWith ( t=>
120+ {
121+ if ( t . Exception != null )
120122{
123+ _logger . LogError ( t . Exception , "failed to connect to VPN service" ) ;
121124#ifDEBUG
122- if ( t . Exception != null )
123- {
124- Debug . WriteLine ( t . Exception ) ;
125- Debugger . Break ( ) ;
126- }
125+ Debug . WriteLine ( t . Exception ) ;
126+ Debugger . Break ( ) ;
127127#endif
128- } ) ;
128+ }
129+ } ) ;
129130
130131// Load the credentials in the background.
131132var credentialManagerCts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 15 ) ) ;
132133var credentialManager = _services . GetRequiredService < ICredentialManager > ( ) ;
133134_ = credentialManager . LoadCredentials ( credentialManagerCts . Token ) . ContinueWith ( t=>
134135{
135- // TODO: log
136136if ( t . Exception != null )
137137{
138138_logger . LogError ( t . Exception , "failed to load credentials" ) ;
@@ -150,7 +150,6 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs ar
150150var syncSessionController = _services . GetRequiredService < ISyncSessionController > ( ) ;
151151_ = syncSessionController . RefreshState ( syncSessionCts . Token ) . ContinueWith ( t=>
152152{
153- // TODO: log
154153if ( t . IsCanceled || t . Exception != null )
155154{
156155_logger . LogError ( t . Exception , "failed to refresh sync state (canceled = {canceled})" , t . IsCanceled ) ;