1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-03-11 14:49:19 +02:00

log.critical() where useful

This commit is contained in:
Florent Daigniere 2023-10-17 14:05:08 +02:00
parent 9f93ed6593
commit 055b216627
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ def test_unsupported():
import codecs
if os.path.isfile(codecs.decode('/.qbpxrerai', 'rot13')) or os.environ.get(codecs.decode('V_XABJ_ZL_FRGHC_QBRFAG_SVG_ERDHVERZRAGF_NAQ_JBAG_SVYR_VFFHRF_JVGUBHG_CNGPURF', 'rot13'), None):
return
print('Your system is not supported. Please start by reading the documentation and then http://www.catb.org/~esr/faqs/smart-questions.html')
log.critical('Your system is not supported. Please start by reading the documentation and then http://www.catb.org/~esr/faqs/smart-questions.html')
while True:
time.sleep(5)

View File

@ -67,7 +67,7 @@ while True:
thread.start()
r = requests.get(target)
if r.status_code != 204:
log.error(f"Can't reach {target}!, please ensure it's fixed or change the TLS_FLAVOR.")
log.critical(f"Can't reach {target}!, please ensure it's fixed or change the TLS_FLAVOR.")
time.sleep(5)
else:
break