Changed [SOURCEMOD] to [SM]
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40312
This commit is contained in:
parent
2bbcd57b9e
commit
55ab150bd8
@ -15,7 +15,7 @@ void CDbgReporter::OnContextExecuteError(IPluginContext *ctx, IContextTrace *err
|
|||||||
|
|
||||||
if (n_err != SP_ERROR_NATIVE)
|
if (n_err != SP_ERROR_NATIVE)
|
||||||
{
|
{
|
||||||
g_Logger.LogError("[SOURCEMOD] Plugin \"%s\" encountered error %d: %s",
|
g_Logger.LogError("[SM] Plugin \"%s\" encountered error %d: %s",
|
||||||
plname,
|
plname,
|
||||||
n_err,
|
n_err,
|
||||||
error->GetErrorString());
|
error->GetErrorString());
|
||||||
@ -26,26 +26,26 @@ void CDbgReporter::OnContextExecuteError(IPluginContext *ctx, IContextTrace *err
|
|||||||
const char *custerr;
|
const char *custerr;
|
||||||
if ((custerr=error->GetCustomErrorString()) != NULL)
|
if ((custerr=error->GetCustomErrorString()) != NULL)
|
||||||
{
|
{
|
||||||
g_Logger.LogError("[SOURCEMOD] Native \"%s\" reported: \"%s\"", lastname, custerr);
|
g_Logger.LogError("[SM] Native \"%s\" reported: \"%s\"", lastname, custerr);
|
||||||
} else {
|
} else {
|
||||||
g_Logger.LogError("[SOURCEMOD] Native \"%s\" encountered a generic error.", lastname);
|
g_Logger.LogError("[SM] Native \"%s\" encountered a generic error.", lastname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!error->DebugInfoAvailable())
|
if (!error->DebugInfoAvailable())
|
||||||
{
|
{
|
||||||
g_Logger.LogError("[SOURCEMOD] Debug mode is not enabled for this plugin.");
|
g_Logger.LogError("[SM] Debug mode is not enabled for this plugin.");
|
||||||
g_Logger.LogError("[SOURCEMOD] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug %d on",
|
g_Logger.LogError("[SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug %d on",
|
||||||
_GetPluginIndex(ctx));
|
_GetPluginIndex(ctx));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CallStackInfo stk_info;
|
CallStackInfo stk_info;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
g_Logger.LogError("[SOURCEMOD] Displaying call stack trace:");
|
g_Logger.LogError("[SM] Displaying call stack trace:");
|
||||||
while (error->GetTraceInfo(&stk_info))
|
while (error->GetTraceInfo(&stk_info))
|
||||||
{
|
{
|
||||||
g_Logger.LogError("[SOURCEMOD] [%d] Line %d, %s::%s()",
|
g_Logger.LogError("[SM] [%d] Line %d, %s::%s()",
|
||||||
i++,
|
i++,
|
||||||
stk_info.line,
|
stk_info.line,
|
||||||
stk_info.filename,
|
stk_info.filename,
|
||||||
|
@ -48,7 +48,7 @@ void CLogger::_NewMapFile()
|
|||||||
FILE *fp = fopen(m_NrmFileName.c_str(), "w");
|
FILE *fp = fopen(m_NrmFileName.c_str(), "w");
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
{
|
||||||
g_SMAPI->ConPrint("[SOURCEMOD] Unexpected fatal logging error. SourceMod logging disabled.\n");
|
g_SMAPI->ConPrint("[SM] Unexpected fatal logging error. SourceMod logging disabled.\n");
|
||||||
m_Active = false;
|
m_Active = false;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
@ -207,7 +207,7 @@ void CLogger::LogMessage(const char *vafmt, ...)
|
|||||||
g_SMAPI->ConPrintf("L %s: %s\n", date, msg);
|
g_SMAPI->ConPrintf("L %s: %s\n", date, msg);
|
||||||
return;
|
return;
|
||||||
print_error:
|
print_error:
|
||||||
g_SMAPI->ConPrint("[SOURCEMOD] Unexpected fatal logging error. SourceMod logging disabled.\n");
|
g_SMAPI->ConPrint("[SM] Unexpected fatal logging error. SourceMod logging disabled.\n");
|
||||||
m_Active = false;
|
m_Active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ void CLogger::LogError(const char *vafmt, ...)
|
|||||||
fprintf(fp, "L %s: %s\n", date, msg);
|
fprintf(fp, "L %s: %s\n", date, msg);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
} else {
|
} else {
|
||||||
g_SMAPI->ConPrint("[SOURCEMOD] Unexpected fatal logging error. SourceMod logging disabled.\n");
|
g_SMAPI->ConPrint("[SM] Unexpected fatal logging error. SourceMod logging disabled.\n");
|
||||||
m_Active = false;
|
m_Active = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user