8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:43:03 +01:00
This commit is contained in:
dimitr 2005-08-31 16:08:14 +00:00
parent 64f7b17755
commit ec27d021fd
3 changed files with 15 additions and 15 deletions

View File

@ -164,7 +164,7 @@ void CNTL_shutdown_service(const TEXT* message)
*
**************************************/
const char* strings[2];
char buffer[256];
char buffer[BUFFER_SMALL];
sprintf(buffer, "%s error: %lu", service_name, GetLastError());

View File

@ -87,16 +87,16 @@ class SyslogAccess iSyslogAccess;
namespace Firebird {
void Syslog::Record(Severity level, Firebird::string Msg) {
WORD wType = EVENTLOG_ERROR_TYPE;
switch (level) {
case Warning:
wType = EVENTLOG_INFORMATION_TYPE;
break;
case Error:
default:
wType = EVENTLOG_ERROR_TYPE;
break;
WORD wType = EVENTLOG_ERROR_TYPE;
switch (level) {
case Warning:
wType = EVENTLOG_INFORMATION_TYPE;
break;
case Error:
default:
wType = EVENTLOG_ERROR_TYPE;
break;
}
iSyslogAccess.Record(wType, Msg);
}
iSyslogAccess.Record(wType, Msg);
}
} // namespace Firebird

View File

@ -234,10 +234,10 @@ void CNTL_shutdown_service( const TEXT* message)
**************************************/
const char* strings[2];
char buffer[256];
sprintf(buffer, "%s error: %lu", "Firebird Server", GetLastError());
char buffer[BUFFER_SMALL];
sprintf(buffer, "%s error: %lu", REMOTE_SERVICE, GetLastError());
HANDLE event_source = RegisterEventSource(NULL, "Firebird Server");
HANDLE event_source = RegisterEventSource(NULL, REMOTE_SERVICE);
if (event_source) {
strings[0] = buffer;
strings[1] = message;