diff --git a/modules/saml/lib/SP/LogoutStore.php b/modules/saml/lib/SP/LogoutStore.php
index 7d995b369a01f0a43a947e91a2b83d96d1e33806..234380fa3224a7f4d019fdd15fe2333db981bb32 100644
--- a/modules/saml/lib/SP/LogoutStore.php
+++ b/modules/saml/lib/SP/LogoutStore.php
@@ -38,7 +38,7 @@ class LogoutStore
             try {
                 $store->pdo->exec($query);
             } catch (\Exception $e) {
-                \SimpleSAML\Logger::warning($store->pdo->errorInfo());
+                \SimpleSAML\Logger::warning('Database error: '.var_export($store->pdo->errorInfo(), true));
                 return;
             }
             $store->setTableVersion('saml_LogoutStore', 2);