mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 20:28:52 +02: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
|
namespace ircd
|
||||||
{
|
{
|
||||||
|
extern const uint boost_version[3];
|
||||||
|
|
||||||
bool debugmode; // set by command line
|
bool debugmode; // set by command line
|
||||||
|
|
||||||
boost::asio::io_service *ios; // user's io service
|
boost::asio::io_service *ios; // user's io service
|
||||||
|
@ -56,6 +58,16 @@ ircd::init(boost::asio::io_service &io_service,
|
||||||
log::init();
|
log::init();
|
||||||
log::mark("START");
|
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)
|
if(main_exit_func)
|
||||||
{
|
{
|
||||||
log::debug("User set an exit callback");
|
log::debug("User set an exit callback");
|
||||||
|
@ -174,6 +186,14 @@ ircd::init_rlimit()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const uint
|
||||||
|
ircd::boost_version[3]
|
||||||
|
{
|
||||||
|
BOOST_VERSION / 100000,
|
||||||
|
BOOST_VERSION / 100 % 1000,
|
||||||
|
BOOST_VERSION % 100,
|
||||||
|
};
|
||||||
|
|
||||||
// namespace ircd {
|
// namespace ircd {
|
||||||
|
|
||||||
/* /quote set variables */
|
/* /quote set variables */
|
||||||
|
|
Loading…
Reference in a new issue