0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-25 05:18:23 +02:00

ircd: Log version information on startup.

This commit is contained in:
Jason Volk 2017-09-18 23:10:38 -07:00
parent 676baec73d
commit a12309be44

View file

@ -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 */