mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
"No config.py found" should warning level, until people get use to it
Since !335 changed the long standing behavior, now allowing `fdroid` to work without a config.py being present, this message should be quite visible in case people are expecting `fdroid` to fail when there is no config.py present.
This commit is contained in:
parent
c7d45b9515
commit
9712fac011
@ -240,7 +240,7 @@ def read_config(opts, config_file='config.py'):
|
|||||||
code = compile(f.read(), config_file, 'exec')
|
code = compile(f.read(), config_file, 'exec')
|
||||||
exec(code, None, config)
|
exec(code, None, config)
|
||||||
else:
|
else:
|
||||||
logging.debug("No config.py found - using defaults.")
|
logging.warning("No config.py found - using defaults.")
|
||||||
|
|
||||||
for k in ('mirrors', 'install_list', 'uninstall_list', 'serverwebroot', 'servergitroot'):
|
for k in ('mirrors', 'install_list', 'uninstall_list', 'serverwebroot', 'servergitroot'):
|
||||||
if k in config:
|
if k in config:
|
||||||
|
Loading…
Reference in New Issue
Block a user