You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
style(app.py): update logger warning messages for clarity and conciseness
Improve the clarity and conciseness of logger warning messages
regarding the use of eval commands by sysadmins. The updated messages
use emojis to quickly convey the nature of the warning and direct users
to the settings.yml.example file for more detailed information. This
change aims to make the warnings more user-friendly and informative.
"Sysadmins are allowed to use eval commands. This can be potentially dangerous if you have not fully read the comments about this in settings.yml.",
112
+
"⚠️ Eval is enabled for sysadmins, this is potentially dangerous; see settings.yml.example for more info.",
112
113
)
113
114
owner_ids.update(CONFIG.SYSADMIN_IDS)
115
+
114
116
else:
115
-
logger.warning(
116
-
"Sysadmins are not allowed to use eval commands. Read settings.yml for more info on this. You can safely ignore this warning if you are not a sysadmin.",
117
-
)
117
+
logger.warning("🔒️ Eval is disabled for sysadmins; see settings.yml.example for more info.")
0 commit comments