Upgraded to log warning, resolved comment

This commit is contained in:
0mar
2021-04-07 08:38:05 +02:00
committed by 0mar
parent 6121411aec
commit be17ae68ee

View File

@@ -1890,7 +1890,7 @@ class JupyterHub(Application):
# make sure that on no admin situation, all roles are reset # make sure that on no admin situation, all roles are reset
admin_role = orm.Role.find(db, name='admin') admin_role = orm.Role.find(db, name='admin')
if not admin_role.users: if not admin_role.users:
app_log.info( app_log.warning(
"No admin users found; assuming hub upgrade. Initializing default roles for all entities" "No admin users found; assuming hub upgrade. Initializing default roles for all entities"
) )
# make sure all users, services and tokens have at least one role (update with default) # make sure all users, services and tokens have at least one role (update with default)