Reduce logging verbosity when a connection error occurs
This commit is contained in:
parent
e37923a752
commit
5e46cdfbbf
@ -83,11 +83,11 @@ class BaseRequest( object ):
|
|||||||
else:
|
else:
|
||||||
_IgnoreExtraConfFile( e.extra_conf_file )
|
_IgnoreExtraConfFile( e.extra_conf_file )
|
||||||
self._should_resend = True
|
self._should_resend = True
|
||||||
except BaseRequest.Requests().exceptions.ConnectionError:
|
except BaseRequest.Requests().exceptions.ConnectionError as e:
|
||||||
# We don't display this exception to the user since it is likely to happen
|
# We don't display this exception to the user since it is likely to happen
|
||||||
# for each subsequent request (typically if the server crashed) and we
|
# for each subsequent request (typically if the server crashed) and we
|
||||||
# don't want to spam the user with it.
|
# don't want to spam the user with it.
|
||||||
_logger.exception( 'Unable to connect to server' )
|
_logger.error( e )
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
_logger.exception( 'Error while handling server response' )
|
_logger.exception( 'Error while handling server response' )
|
||||||
if display_message:
|
if display_message:
|
||||||
|
Loading…
Reference in New Issue
Block a user