Use log.warning() instead of deprecated warn()

This commit is contained in:
Nicola Soranzo
2017-08-18 12:35:04 +01:00
parent 784e6f5fd3
commit 4e75635d62
7 changed files with 9 additions and 9 deletions
@@ -56,7 +56,7 @@ app_properties = load_app_properties(ini_file=config['config_file'])
# We need the ID secret for configuring the security helper to decrypt
# galaxysession cookies.
if "id_secret" not in app_properties:
log.warn('No ID_SECRET specified. Please set the "id_secret" in your galaxy.ini.')
log.warning('No ID_SECRET specified. Please set the "id_secret" in your galaxy.ini.')
id_secret = app_properties.get('id_secret', 'dangerous_default')
+1 -1
View File
@@ -27,7 +27,7 @@ app_properties = load_app_properties(ini_file=config['config_file'])
# We need the ID secret for configuring the security helper to decrypt
# galaxysession cookies.
if "id_secret" not in app_properties:
log.warn('No ID_SECRET specified. Please set the "id_secret" in your galaxy.ini.')
log.warning('No ID_SECRET specified. Please set the "id_secret" in your galaxy.ini.')
id_secret = app_properties.get('id_secret', 'dangerous_default')