From 6914f92016c3c4f29d22eae3ad614dbbab79ab5d Mon Sep 17 00:00:00 2001
From: Loic Baron <loic.baron@lip6.fr>
Date: Tue, 10 Jan 2017 09:59:42 +0100
Subject: [PATCH] activity log if error

---
 activity/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/activity/__init__.py b/activity/__init__.py
index 4a7d5c30..d5b76fdb 100644
--- a/activity/__init__.py
+++ b/activity/__init__.py
@@ -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
-- 
2.47.0