Merged in bugfix/PMCORE-1335 (pull request #7332)
PMCORE-1335 ProcessMaker core should be use the native Laravel log mechanism Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
5e8d0a8f02
@@ -2,6 +2,7 @@
|
||||
|
||||
use App\Jobs\GenerateReportTable;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use ProcessMaker\Core\JobsManager;
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Model\Application;
|
||||
@@ -1067,10 +1068,9 @@ class AdditionalTables extends BaseAdditionalTables
|
||||
if ($externalResultSet->next()) {
|
||||
$stringCount = $externalResultSet->getInt(1);
|
||||
}
|
||||
} catch (Exception $externalException) {
|
||||
$context = Bootstrap::getDefaultContextLog();
|
||||
$context = array_merge($context, $row);
|
||||
Bootstrap::registerMonolog("additional tables", 400, $externalException->getMessage(), $context);
|
||||
} catch (Exception $e) {
|
||||
$message = $e->getMessage();
|
||||
Log::channel(':additional tables')->error($message, Bootstrap::context($row));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user