[Groonga-commit] droonga/droonga-http-server at 007be06 [master] Output more trace logs for the exit process

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 9 16:44:36 JST 2015


YUKI Hiroshi	2015-04-09 16:44:36 +0900 (Thu, 09 Apr 2015)

  New Revision: 007be06e6c9e9e6356fc19fa748862475120dae7
  https://github.com/droonga/droonga-http-server/commit/007be06e6c9e9e6356fc19fa748862475120dae7

  Message:
    Output more trace logs for the exit process

  Modified files:
    bin/droonga-http-server

  Modified: bin/droonga-http-server (+7 -2)
===================================================================
--- bin/droonga-http-server    2015-04-09 16:17:03 +0900 (e16fb29)
+++ bin/droonga-http-server    2015-04-09 16:44:36 +0900 (d0d784f)
@@ -160,14 +160,19 @@ function shutdown(error) {
   }
 
   try {
+    logger.trace('Trying to close the server: start');
     server.close();
+    logger.trace('Trying to close the server: done');
   } catch(error) {
-    logger.error('Unexpected error on closing of the server.');
+    logger.error('Trying to close the server: failed');
     logger.error(error);
   }
 
-  if (options.pidFile && fs.existsSync(options.pidFile))
+  if (options.pidFile && fs.existsSync(options.pidFile)) {
+    logger.trace('Removing the PID file: start');
     fs.unlinkSync(options.pidFile);
+    logger.trace('Removing the PID file: done');
+  }
 }
 
 process.on('SIGHUP', function() {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index