File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1151,12 +1151,12 @@ def neither_403_nor_404(mirror_error):
11511151 # Otherwise, reraise the error, because it is not a simple HTTP
11521152 # error.
11531153 if neither_403_nor_404 (mirror_error ):
1154- logging .exception ('Misc error for root version ' + str (next_version ))
1154+ logger .exception ('Misc error for root version ' + str (next_version ))
11551155 raise
11561156 else :
11571157 # Calling this function should give us a detailed stack trace
11581158 # including an HTTP error code, if any.
1159- logging .exception ('HTTP error for root version ' + str (next_version ))
1159+ logger .exception ('HTTP error for root version ' + str (next_version ))
11601160 # If we are here, then we ran into only 403 / 404 errors, which are
11611161 # good reasons to suspect that the next root metadata file does not
11621162 # exist.
Original file line number Diff line number Diff line change 118118# the standard pattern of logging.getLogger(__name__)
119119logger = logging .getLogger ('tuf' )
120120logger .setLevel (_DEFAULT_LOG_LEVEL )
121+ logger .addHandler (logging .NullHandler ())
121122
122123# Set the built-in file handler. Messages will be logged to
123124# 'settings.LOG_FILENAME', and only those messages with a log level of
You can’t perform that action at this time.
0 commit comments