Replaced various other log calls in zone

This commit is contained in:
Akkadius
2015-01-10 15:59:32 -06:00
parent 4bf74348a1
commit 18c837c398
5 changed files with 39 additions and 41 deletions
+5 -5
View File
@@ -139,12 +139,12 @@ void Embperl::DoInit() {
catch(const char *err)
{
//remember... lasterr() is no good if we crap out here, in construction
LogFile->write(EQEmuLog::Quest, "perl error: %s", err);
logger.Log(EQEmuLogSys::Quest, "perl error: %s", err);
throw "failed to install eval_file hook";
}
#ifdef EMBPERL_IO_CAPTURE
LogFile->write(EQEmuLog::Quest, "Tying perl output to eqemu logs");
logger.Log(EQEmuLogSys::Quest, "Tying perl output to eqemu logs");
//make a tieable class to capture IO and pass it into EQEMuLog
eval_pv(
"package EQEmuIO; "
@@ -169,14 +169,14 @@ void Embperl::DoInit() {
,FALSE
);
LogFile->write(EQEmuLog::Quest, "Loading perlemb plugins.");
logger.Log(EQEmuLogSys::Quest, "Loading perlemb plugins.");
try
{
eval_pv("main::eval_file('plugin', 'plugin.pl');", FALSE);
}
catch(const char *err)
{
LogFile->write(EQEmuLog::Quest, "Warning - plugin.pl: %s", err);
logger.Log(EQEmuLogSys::Quest, "Warning - plugin.pl: %s", err);
}
try
{
@@ -194,7 +194,7 @@ void Embperl::DoInit() {
}
catch(const char *err)
{
LogFile->write(EQEmuLog::Quest, "Perl warning: %s", err);
logger.Log(EQEmuLogSys::Quest, "Perl warning: %s", err);
}
#endif //EMBPERL_PLUGIN
in_use = false;