activity log if error
authorLoic Baron <loic.baron@lip6.fr>
Tue, 10 Jan 2017 08:59:42 +0000 (09:59 +0100)
committerLoic Baron <loic.baron@lip6.fr>
Tue, 10 Jan 2017 08:59:42 +0000 (09:59 +0100)
activity/__init__.py

index 4a7d5c3..d5b76fd 100644 (file)
@@ -87,6 +87,7 @@ def logWrite(request, action, message, objects = None):
         logger.error(e.strerror)
 
         dbfile = ''.join([os.path.dirname(os.path.abspath(__file__)), "/errors.db"])
+       logger.error("===============>> activity: database path: " + dbfile)
         conn = None
         try:
             conn = lite.connect(dbfile)
@@ -127,6 +128,7 @@ def sign(secret, message):
 def logCheck():
     """Checking local database for logs adn sending it to monitoring server"""
     dbfile = ''.join([os.path.dirname(os.path.abspath(__file__)), "/errors.db"])
+    logger.error("[activity] database path: " + dbfile)
     conn = None
 
     #trying to connect local db adn pull unsent logs