diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp
index 966b80cf3af7..17af7d74a1d5 100644
--- a/test/log/log_process.cpp
+++ b/test/log/log_process.cpp
@@ -115,8 +115,11 @@ protected:
 		close(fd);
 
 		string str(buf);
-		if (str.find(message) == string::npos)
+		if (str.find(message) == string::npos) {
+			cerr << "Received message is not correct (received "
+			     << str.length() << " bytes)" << endl;
 			return TestFail;
+		}
 
 		return TestPass;
 	}
