summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-04-12 07:58:58 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-04-12 07:58:58 -0700
commita5fe50aca04ca554d313e7361c571c6a497a9c4e (patch)
tree88fdf155712654b0c783bb53770d8e80e28b0d10 /src/helperfuncs.cpp
parent1858feabd342636df0b52780c978979b4e049fc3 (diff)
parent645f7e18c64a6628ede880dc69bf8825ba93b375 (diff)
Merge pull request #488 from SaberUK/master+loglevel-rename
Add LOG_ prefix to the log level enum values.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index ee059e756..fba76805c 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -379,7 +379,7 @@ bool InspIRCd::OpenLog(char**, int)
}
FileWriter* fw = new FileWriter(startup);
- FileLogStream *f = new FileLogStream((Config->cmdline.forcedebug ? DEBUG : DEFAULT), fw);
+ FileLogStream *f = new FileLogStream((Config->cmdline.forcedebug ? LOG_DEBUG : LOG_DEFAULT), fw);
this->Logs->AddLogType("*", f, true);
@@ -392,7 +392,7 @@ void InspIRCd::CheckRoot()
if (geteuid() == 0)
{
std::cout << "ERROR: You are running an irc server as root! DO NOT DO THIS!" << std::endl << std::endl;
- this->Logs->Log("STARTUP",DEFAULT,"Can't start as root");
+ this->Logs->Log("STARTUP",LOG_DEFAULT,"Can't start as root");
Exit(EXIT_STATUS_ROOT);
}
#endif