mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use log.warning() instead of deprecated warn()
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user