From 30c9554e03a2ab9e0d50a487baaa72ff67c49ec9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Jun 2026 03:27:26 +0200 Subject: [PATCH] Log --- htdocs/blockedlog/class/blockedlog.class.php | 2 +- htdocs/blockedlog/lib/blockedlog.lib.php | 4 ++-- test/phpunit/AllTests.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php index 56ff79af846..e394c8b952a 100644 --- a/htdocs/blockedlog/class/blockedlog.class.php +++ b/htdocs/blockedlog/class/blockedlog.class.php @@ -1530,7 +1530,7 @@ class BlockedLog } } elseif ($headstring != '') { // Failed to decrypt the head - throw new Exception("Failed to decode the content of the .end flag ".basename($lockfile)." with the remote obfuscation key, so we can't record the head file so we abort the transaction."); + throw new Exception("Failed to decode the content of the .end flag ".basename($lockfile).", content = '.$line.' (remote obfuscation key = '.$remoteobfuscationkey.'), so we can't record the head file so we abort the transaction."); } // If a note has been added to track an anomaly (signature is also different in this case). diff --git a/htdocs/blockedlog/lib/blockedlog.lib.php b/htdocs/blockedlog/lib/blockedlog.lib.php index ad5d01eec10..be7736a5a4d 100644 --- a/htdocs/blockedlog/lib/blockedlog.lib.php +++ b/htdocs/blockedlog/lib/blockedlog.lib.php @@ -443,8 +443,8 @@ function callApiToGetObfuscationKey($idprof1, $registrationnumber, $force = fals $timeoutconnect = 3; $timeoutresponse = 3; - dol_syslog("callApiToGetObfuscationKey call remote URL", LOG_DEBUG); - dol_syslog("callApiToGetObfuscationKey call remote URL", LOG_DEBUG, 0, '_dolibarrgetkeyobfuscation'); + dol_syslog("callApiToGetObfuscationKey call remote URL idprod1=".dol_sanitizeKeyCode($idprof1), LOG_DEBUG); + dol_syslog("callApiToGetObfuscationKey call remote URL idprod1=".dol_sanitizeKeyCode($idprof1), LOG_DEBUG, 0, '_dolibarrgetkeyobfuscation'); include_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; try { diff --git a/test/phpunit/AllTests.php b/test/phpunit/AllTests.php index e4b57a69b32..5df657144eb 100644 --- a/test/phpunit/AllTests.php +++ b/test/phpunit/AllTests.php @@ -77,7 +77,7 @@ dolibarr_set_const($db, 'BLOCKEDLOG_REGISTRATION_NAME', 'MyBigCompanyByPHPUnit') dolibarr_set_const($db, 'BLOCKEDLOG_REGISTRATION_EMAIL', 'mybigcompany@example.com'); dolibarr_set_const($db, 'MAIN_INFO_SIREN', 'phpunit123'); dolibarr_set_const($db, 'MAIN_INFO_SIRET', 'phpunit12312345'); -$sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name='blockedlog-1.end'"; +$sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'blockedlog-1.end'"; $db->query($sql); /**