Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,780 Lines • ▼ Show 20 Lines | #endif | ||||
if (logger.m_print_to_file) { | if (logger.m_print_to_file) { | ||||
if (!logger.OpenDebugLog()) { | if (!logger.OpenDebugLog()) { | ||||
return InitError(strprintf("Could not open debug log file %s", | return InitError(strprintf("Could not open debug log file %s", | ||||
logger.GetDebugLogPath().string())); | logger.GetDebugLogPath().string())); | ||||
} | } | ||||
} | } | ||||
if (!logger.m_log_timestamps) { | if (!logger.m_log_timestamps) { | ||||
LogPrintf("Startup time: %s\n", | LogPrintf("Startup time: %s\n", FormatISO8601DateTime(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()); | ||||
LogPrintf( | LogPrintf( | ||||
"Using config file %s\n", | "Using config file %s\n", | ||||
GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)).string()); | GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)).string()); | ||||
LogPrintf("Using at most %i automatic connections (%i file descriptors " | LogPrintf("Using at most %i automatic connections (%i file descriptors " | ||||
"available)\n", | "available)\n", | ||||
▲ Show 20 Lines • Show All 594 Lines • Show Last 20 Lines |