From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks
---
inc/managers/OperationQueue.php | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/inc/managers/OperationQueue.php b/inc/managers/OperationQueue.php
index 949e5c6..77ba35a 100644
--- a/inc/managers/OperationQueue.php
+++ b/inc/managers/OperationQueue.php
@@ -547,7 +547,7 @@
];
} catch (Exception $e) {
- JVB()->error()->log('queue', $e->getMessage(), $data, 'high');
+ Errors::getInstance()->log('queue', $e->getMessage(), $data, 'high');
return new WP_Error('queue_failed', $e->getMessage());
}
}
@@ -1029,7 +1029,7 @@
);
// Log this as a critical error
- JVB()->error()->log(
+ Errors::getInstance()->log(
'[OperationQueue]:restartStuckOperations',
"Operation failed after maximum retries",
[
@@ -1057,7 +1057,7 @@
);
// Log the backoff
- JVB()->error()->log(
+ Errors::getInstance()->log(
'[OperationQueue]:restartStuckOperations',
"Operation requeued with exponential backoff",
[
@@ -1184,7 +1184,7 @@
if (!is_array($filterResult) || !isset($filterResult['success'])) {
// Log invalid filter response and quit early
$invalid_response = is_object($filterResult) ? get_class($filterResult) : gettype($filterResult);
- JVB()->error()->log(
+ Errors::getInstance()->log(
'[OperationQueue]:processOperation',
"Invalid filter response format - expected array with 'success' key",
[
@@ -1348,7 +1348,7 @@
} catch (Exception $e) {
// Handle exception...
- JVB()->error()->log(
+ Errors::getInstance()->log(
'[OperationQueue]:processOperation',
"Exception during operation processing: " . $e->getMessage(),
[
@@ -1887,7 +1887,7 @@
return $value;
} catch (Exception $e) {
- JVB()->error()->log(
+ Errors::getInstance()->log(
'[OperationQueue]:getOperationValue',
'Error retrieving operation value: ' . $e->getMessage(),
[
--
Gitblit v1.10.0