mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
ircd: Log version information on startup.
This commit is contained in:
parent
676baec73d
commit
a12309be44
1 changed files with 20 additions and 0 deletions
20
ircd/ircd.cc
20
ircd/ircd.cc
|
@ -27,6 +27,8 @@
|
|||
|
||||
namespace ircd
|
||||
{
|
||||
extern const uint boost_version[3];
|
||||
|
||||
bool debugmode; // set by command line
|
||||
|
||||
boost::asio::io_service *ios; // user's io service
|
||||
|
@ -56,6 +58,16 @@ ircd::init(boost::asio::io_service &io_service,
|
|||
log::init();
|
||||
log::mark("START");
|
||||
|
||||
log::info("%s. boost %u.%u.%u. rocksdb %s. %s configured %s %s",
|
||||
PACKAGE_STRING,
|
||||
boost_version[0],
|
||||
boost_version[1],
|
||||
boost_version[2],
|
||||
db::version,
|
||||
BRANDING_VERSION,
|
||||
RB_DATE_CONFIGURED,
|
||||
RB_DEBUG? "(DEBUG MODE)" : "");
|
||||
|
||||
if(main_exit_func)
|
||||
{
|
||||
log::debug("User set an exit callback");
|
||||
|
@ -174,6 +186,14 @@ ircd::init_rlimit()
|
|||
}
|
||||
#endif
|
||||
|
||||
const uint
|
||||
ircd::boost_version[3]
|
||||
{
|
||||
BOOST_VERSION / 100000,
|
||||
BOOST_VERSION / 100 % 1000,
|
||||
BOOST_VERSION % 100,
|
||||
};
|
||||
|
||||
// namespace ircd {
|
||||
|
||||
/* /quote set variables */
|
||||
|
|
Loading…
Reference in a new issue