forked from borgmatic-collective/borgmatic
Compare commits
2 Commits
1c7ad67c8c
...
95575c3450
Author | SHA1 | Date | |
---|---|---|---|
95575c3450 | |||
9b071ff92f |
|
@ -64,9 +64,13 @@ def ping_monitor(hook_config, config_filename, state, monitoring_log_level, dry_
|
||||||
auth = requests.auth.HTTPBasicAuth(username, password)
|
auth = requests.auth.HTTPBasicAuth(username, password)
|
||||||
logger.info(f'{config_filename}: Using basic auth with user {username} for Ntfy')
|
logger.info(f'{config_filename}: Using basic auth with user {username} for Ntfy')
|
||||||
elif username is not None:
|
elif username is not None:
|
||||||
logger.warn(f'{config_filename}: Password missing for Ntfy authentication, defaulting to no auth')
|
logger.warn(
|
||||||
|
f'{config_filename}: Password missing for Ntfy authentication, defaulting to no auth'
|
||||||
|
)
|
||||||
elif password is not None:
|
elif password is not None:
|
||||||
logger.warn(f'{config_filename}: Username missing for Ntfy authentication, defaulting to no auth')
|
logger.warn(
|
||||||
|
f'{config_filename}: Username missing for Ntfy authentication, defaulting to no auth'
|
||||||
|
)
|
||||||
|
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
logging.getLogger('urllib3').setLevel(logging.ERROR)
|
logging.getLogger('urllib3').setLevel(logging.ERROR)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user