diff options
| author | 2008-02-11 11:31:19 +0000 | |
|---|---|---|
| committer | 2008-02-11 11:31:19 +0000 | |
| commit | 539f90e026f2178cc53d15c7d2fc9afe8fd48b1d (patch) | |
| tree | 76ae87d3f2602d4bfa2e6eda90656c34ed829d18 /src/inspircd.cpp | |
| parent | -Woverloaded-virtual fixes (diff) | |
| download | inspircd++-539f90e026f2178cc53d15c7d2fc9afe8fd48b1d.tar.gz inspircd++-539f90e026f2178cc53d15c7d2fc9afe8fd48b1d.tar.bz2 inspircd++-539f90e026f2178cc53d15c7d2fc9afe8fd48b1d.zip | |
Move most of startup process to use new logging, adds target 'STARTUP'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8900 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index aab09d799..209b7ddbc 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -458,7 +458,7 @@ InspIRCd::InspIRCd(int argc, char** argv) if (!this->DaemonSeed()) { printf("ERROR: could not go into daemon mode. Shutting down.\n"); - Log(DEFAULT,"ERROR: could not go into daemon mode. Shutting down."); + Logs->Log("STARTUP", DEFAULT, "ERROR: could not go into daemon mode. Shutting down."); Exit(EXIT_STATUS_FORK); } } @@ -527,7 +527,7 @@ InspIRCd::InspIRCd(int argc, char** argv) if ((Config->ports.size() == 0) && (found_ports > 0)) { printf("\nERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?\n"); - Log(DEFAULT,"ERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?"); + Logs->Log("STARTUP", DEFAULT,"ERROR: I couldn't bind any ports! Something else is bound to those ports!"); Exit(EXIT_STATUS_BIND); } @@ -547,7 +547,7 @@ InspIRCd::InspIRCd(int argc, char** argv) if (kill(getppid(), SIGTERM) == -1) { printf("Error killing parent process: %s\n",strerror(errno)); - Log(DEFAULT,"Error killing parent process: %s",strerror(errno)); + Logs->Log("STARTUP", DEFAULT, "Error killing parent process: %s",strerror(errno)); } } @@ -565,7 +565,7 @@ InspIRCd::InspIRCd(int argc, char** argv) } else { - Log(DEFAULT,"Keeping pseudo-tty open as we are running in the foreground."); + Logs->Log("STARTUP", DEFAULT,"Keeping pseudo-tty open as we are running in the foreground."); } } #else @@ -578,7 +578,7 @@ InspIRCd::InspIRCd(int argc, char** argv) #endif printf("\nInspIRCd is now running as '%s'[%s]\n", Config->ServerName,Config->GetSID().c_str()); - Log(DEFAULT,"Startup complete as '%s'[%s]", Config->ServerName,Config->GetSID().c_str()); + Logs->Log("STARTUP", DEFAULT, "Startup complete as '%s'[%s]", Config->ServerName,Config->GetSID().c_str()); this->WritePID(Config->PID); } |
