* feat: Print out dragonfly version and build on startup #202 * feat: Print out dragonfly version and build on startup #202 changes after review.
This commit is contained in:
parent
1f2895e991
commit
d29425fb2e
|
@ -119,7 +119,7 @@ bool RunEngine(ProactorPool* pool, AcceptServer* acceptor) {
|
|||
|
||||
error_code ec = acceptor->AddListener(bind_addr, port, main_listener);
|
||||
|
||||
LOG_IF(FATAL, ec) << "Cound not open port " << port << ", error: " << ec.message();
|
||||
LOG_IF(FATAL, ec) << "Could not open port " << port << ", error: " << ec.message();
|
||||
|
||||
if (mc_port > 0) {
|
||||
acceptor->AddListener(mc_port, new Listener{Protocol::MEMCACHE, &service});
|
||||
|
@ -166,6 +166,8 @@ Usage: dragonfly [FLAGS]
|
|||
|
||||
MainInitGuard guard(&argc, &argv);
|
||||
|
||||
LOG(INFO) << "Starting dragonfly " << GetVersion();
|
||||
|
||||
struct sigaction act;
|
||||
act.sa_handler = sigill_hdlr;
|
||||
sigemptyset(&act.sa_mask);
|
||||
|
|
Loading…
Reference in New Issue