1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

Use the correct eventlog severity for error

This commit is contained in:
Magnus Hagander
2011-06-09 18:21:38 +02:00
parent 15fe829b23
commit cdd08887b9

View File

@ -1299,7 +1299,7 @@ pgwin32_ServiceMain(DWORD argc, LPTSTR *argv)
write_eventlog(EVENTLOG_INFORMATION_TYPE, _("Waiting for server startup...\n")); write_eventlog(EVENTLOG_INFORMATION_TYPE, _("Waiting for server startup...\n"));
if (test_postmaster_connection(true) == false) if (test_postmaster_connection(true) == false)
{ {
write_eventlog(EVENTLOG_INFORMATION_TYPE, _("Timed out waiting for server startup\n")); write_eventlog(EVENTLOG_ERROR_TYPE, _("Timed out waiting for server startup\n"));
pgwin32_SetServiceStatus(SERVICE_STOPPED); pgwin32_SetServiceStatus(SERVICE_STOPPED);
return; return;
} }