Fix logging in updateModuleConfiguration method
This commit is contained in:
parent
92a0e575d4
commit
ab67b455fb
@ -163,8 +163,9 @@ abstract class ModuleManager implements ModuleManagerInterface
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if ($this->logger) {
|
if ($this->logger) {
|
||||||
$errorMsg = $response['error_msg'] ?? '';
|
$errorMsg = $response['errorMsg'] ?? '';
|
||||||
$this->logger->warning("Failed to update module configuration[account={$this->getAccount()->getCrmUrl()}]:{$errorMsg}");
|
$errors = json_encode($response['errors'] ?? '');
|
||||||
|
$this->logger->warning("Failed to update module configuration[account={$this->getAccount()->getCrmUrl()}]: {$errorMsg}. Detailed errors: {$errors}");
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user