Add a log when the PID file cannot be written in /var/run 19/36919/1
authorasteroide <thomas.duval@orange.com>
Thu, 29 Jun 2017 12:53:58 +0000 (14:53 +0200)
committerasteroide <thomas.duval@orange.com>
Thu, 29 Jun 2017 12:53:58 +0000 (14:53 +0200)
Change-Id: Ibcecd6a631c5ee0bd7e9012ba15f6efcb4f61373

moonv4/moon_orchestrator/moon_orchestrator/server.py

index 85d7d3f..a4e50f1 100644 (file)
@@ -108,6 +108,7 @@ def __save_pid():
         open("/var/run/moon_orchestrator.pid", "w").write(str(os.getpid()))
     except PermissionError:
         LOG.warning("You don't have the right to write PID file in /var/run... Continuing anyway.")
+        LOG.warning("Writing PID file in {}".format(os.getcwd()))
         open("./moon_orchestrator.pid", "w").write(str(os.getpid()))