diff options
Diffstat (limited to 'src/mongo/db/log_process_details.cpp')
-rw-r--r-- | src/mongo/db/log_process_details.cpp | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/src/mongo/db/log_process_details.cpp b/src/mongo/db/log_process_details.cpp index a7d28928e26..9ba6c91299a 100644 --- a/src/mongo/db/log_process_details.cpp +++ b/src/mongo/db/log_process_details.cpp @@ -44,28 +44,27 @@ namespace mongo { - using std::cout; - using std::endl; +using std::cout; +using std::endl; - bool is32bit() { - return ( sizeof(int*) == 4 ); - } +bool is32bit() { + return (sizeof(int*) == 4); +} - void logProcessDetails() { - log() << mongodVersion() << endl; - printGitVersion(); - printOpenSSLVersion(); - printAllocator(); - printCommandLineOpts(); - } +void logProcessDetails() { + log() << mongodVersion() << endl; + printGitVersion(); + printOpenSSLVersion(); + printAllocator(); + printCommandLineOpts(); +} - void logProcessDetailsForLogRotate() { - log() << "pid=" << ProcessId::getCurrent() - << " port=" << serverGlobalParams.port - << ( is32bit() ? " 32" : " 64" ) << "-bit " - << "host=" << getHostNameCached(); +void logProcessDetailsForLogRotate() { + log() << "pid=" << ProcessId::getCurrent() << " port=" << serverGlobalParams.port + << (is32bit() ? " 32" : " 64") << "-bit " + << "host=" << getHostNameCached(); - logProcessDetails(); - } + logProcessDetails(); +} -} //mongo +} // mongo |