Software /
code /
prosody
Comparison
util/startup.lua @ 9878:dd61201fc5af
util.startup: Don't die if there are no config warnings to log (thanks buildbot)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 20 Mar 2019 13:44:29 +0000 |
parent | 9877:ded5303e1fde |
child | 10108:659ffa03f1e7 |
child | 10163:661feb336e18 |
comparison
equal
deleted
inserted
replaced
9877:ded5303e1fde | 9878:dd61201fc5af |
---|---|
99 end); | 99 end); |
100 end | 100 end |
101 | 101 |
102 function startup.log_startup_warnings() | 102 function startup.log_startup_warnings() |
103 dependencies.log_warnings(); | 103 dependencies.log_warnings(); |
104 for _, warning in ipairs(config_warnings) do | 104 if config_warnings then |
105 log("warn", "Configuration warning: %s", warning); | 105 for _, warning in ipairs(config_warnings) do |
106 log("warn", "Configuration warning: %s", warning); | |
107 end | |
106 end | 108 end |
107 end | 109 end |
108 | 110 |
109 function startup.sanity_check() | 111 function startup.sanity_check() |
110 for host, host_config in pairs(config.getconfig()) do | 112 for host, host_config in pairs(config.getconfig()) do |