PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.21
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.21
1.10.25 1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 All 169 releases
← All changes | vendor_prefixed/sentry/sentry/src/Logs/LogsAggregator.php +6 -1 1.10.12 → 1.10.21 View file →
@@ -91,9 +91,14 @@
91 91 continue;
92 92 }
93 93 $log->setAttribute($key, $attribute);
94 94 }
95 - $log = $options->getBeforeSendLogCallback()($log);
95 + try {
96 + $log = $options->getBeforeSendLogCallback()($log);
97 + } catch (\Throwable $exception) {
98 + $options->getLoggerOrNullLogger()->error(\sprintf('The "before_send_log" callback failed with exception: "%s".', $exception->getMessage()));
99 + return;
100 + }
96 101 if ($log === null) {
97 102 if ($sdkLogger !== null) {
98 103 $sdkLogger->info('Log will be discarded because the "before_send_log" callback returned "null".', ['log' => $log]);
99 104 }