mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 18:03:13 +02:00
Always (attempt to) write config warnings and errors to the log file. This
fixes issues like the IRCd mysteriously not being able to boot up without any error message, both on *NIX and Windows.
This commit is contained in:
+5
-8
@@ -1450,17 +1450,14 @@ int InitwIRCD(int argc, char *argv[])
|
||||
#endif
|
||||
if (!init_ssl())
|
||||
{
|
||||
ircd_log(LOG_ERROR, "WARNING: Failed to load SSL (no certificate?) -- continueing without SSL support...");
|
||||
#ifndef _WIN32
|
||||
fprintf(stderr, "WARNING: Failed to load SSL (no certificate or keys?) -- continueing without SSL support...\n");
|
||||
#endif
|
||||
config_warn("Failed to load SSL (no certificate?) -- continueing without SSL support...");
|
||||
if (ssl_used_in_config_but_unavail())
|
||||
{
|
||||
ircd_log(LOG_ERROR, "IRCd failed to start");
|
||||
#ifndef _WIN32
|
||||
fprintf(stderr, "IRCd failed to start\n");
|
||||
config_error("IRCd failed to start");
|
||||
#ifdef _WIN32
|
||||
win_error(); /* display error dialog box */
|
||||
#endif
|
||||
exit(9); /* ssl_used_in_config_but_unavail() takes care of error message. */
|
||||
exit(9);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user