feat: Print out dragonfly version and build on startup #202 (#203)

* 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:
odedponcz 2022-07-12 17:49:27 +03:00 committed by GitHub
parent 1f2895e991
commit d29425fb2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);