Skip to content

Commit b0a060c

Browse files
committed
logging.CRITICAL
1 parent 9bb14da commit b0a060c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qiita_client/qiita_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
logger = logging.getLogger(__name__)
2929

3030
JOB_COMPLETED = False
31-
# if the log level is DEBUG we should never expect slow response so let's
32-
# make the retries as small as posible
33-
if logger.level == logging.DEBUG:
31+
# if the log level is not CRITICAL, the default, then we not expect slow
32+
# responses from the server so let's make the retries values small
33+
if logger.level != logging.CRITICAL:
3434
MAX_RETRIES = 1
3535
MIN_TIME_SLEEP = 1
3636
MAX_TIME_SLEEP = 3

0 commit comments

Comments
 (0)