diff --git a/features/bootstrap/ClapiContext.php b/features/bootstrap/ClapiContext.php
index ba4e9c3b073ca5d629538860588cb99c393c864f..06dadb223f1a2fe3e56cf827c35288e5420eda87 100644
--- a/features/bootstrap/ClapiContext.php
+++ b/features/bootstrap/ClapiContext.php
@@ -78,6 +78,15 @@ class ClapiContext extends CentreonContext
         $fileCompare = trim(file_get_contents($this->file['compare'], FILE_USE_INCLUDE_PATH));
 
         if ($fileLocal != $fileCompare) {
+            exec(
+                'diff ' . $this->file['localpath'] . ' ' . $this->file['compare'],
+                $output
+            );
+            file_put_contents(
+                $this->composeFiles['log_directory'] . '/' .
+                    date('Y-m-d-H-i') . '-diffClapi.txt',
+                implode("\n", $output)
+            );
             throw new \Exception('Configuration not imported');
         }
     }