Observed in T188246, warnings such as in config2.py is not shown (T188246#4006645), unless logging is preconfigued before running pwb.py (T188246#4006944). This may hinders users' and developers' ability to find the root cause of issues that happens during early initialization.
To reproduce, choose whatever method to invoke warning() in config2.py, such as, chown user-config.py to someone else (non-windows), chmod it to world-writable (non-windows), set PYWIKIBOT2_NO_USER_CONFIG to != 2 or 0, use invalid editor, unset family and language in user-config.py, etc. The warnings will be unexpectedly silenced.