mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
* sane log messages: DaemonWin32.cpp
This commit is contained in:
parent
19c74ce9fa
commit
16880074fa
1 changed files with 4 additions and 4 deletions
|
@ -49,17 +49,17 @@ namespace i2p
|
||||||
|
|
||||||
if (isDaemon == 1)
|
if (isDaemon == 1)
|
||||||
{
|
{
|
||||||
LogPrint("Service session");
|
LogPrint(eLogDebug, "Daemon: running as service");
|
||||||
I2PService service(SERVICE_NAME);
|
I2PService service(SERVICE_NAME);
|
||||||
if (!I2PService::Run(service))
|
if (!I2PService::Run(service))
|
||||||
{
|
{
|
||||||
LogPrint("Service failed to run w/err 0x%08lx\n", GetLastError());
|
LogPrint(eLogError, "Daemon: Service failed to run w/err 0x%08lx\n", GetLastError());
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LogPrint("User session");
|
LogPrint(eLogDebug, "Daemon: running as user");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue