Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,758 Lines • ▼ Show 20 Lines | #ifndef WIN32 | ||||
CreatePidFile(GetPidFile(), getpid()); | CreatePidFile(GetPidFile(), getpid()); | ||||
#endif | #endif | ||||
BCLog::Logger &logger = GetLogger(); | BCLog::Logger &logger = GetLogger(); | ||||
if (gArgs.GetBoolArg("-shrinkdebugfile", logCategories != BCLog::NONE)) { | if (gArgs.GetBoolArg("-shrinkdebugfile", logCategories != BCLog::NONE)) { | ||||
// Do this first since it both loads a bunch of debug.log into memory, | // Do this first since it both loads a bunch of debug.log into memory, | ||||
// and because this needs to happen before any other debug.log printing. | // and because this needs to happen before any other debug.log printing. | ||||
ShrinkDebugFile(); | logger.ShrinkDebugFile(); | ||||
} | } | ||||
if (logger.fPrintToDebugLog) { | if (logger.fPrintToDebugLog) { | ||||
OpenDebugLog(); | logger.OpenDebugLog(); | ||||
} | } | ||||
if (!logger.fLogTimestamps) { | if (!logger.fLogTimestamps) { | ||||
LogPrintf("Startup time: %s\n", | LogPrintf("Startup time: %s\n", | ||||
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime())); | DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime())); | ||||
} | } | ||||
LogPrintf("Default data directory %s\n", GetDefaultDataDir().string()); | LogPrintf("Default data directory %s\n", GetDefaultDataDir().string()); | ||||
LogPrintf("Using data directory %s\n", GetDataDir().string()); | LogPrintf("Using data directory %s\n", GetDataDir().string()); | ||||
▲ Show 20 Lines • Show All 546 Lines • Show Last 20 Lines |