Skip to content

Commit

Permalink
Log when WooPay has blog_token misconfigured
Browse files Browse the repository at this point in the history
  • Loading branch information
lovo-h committed Jul 16, 2024
1 parent 1379d5a commit 2253cdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/woopay/class-woopay-utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use WC_Payments_Features;
use WC_Payments_Subscriptions_Utilities;
use WCPay\Logger;
use WooPay_Extension;
use WC_Geolocation;
use WC_Payments;
Expand Down Expand Up @@ -268,7 +269,7 @@ public static function get_store_blog_token() {
// Has a defined dev blog token secret: Use it.
return DEV_BLOG_TOKEN_SECRET;
} else {
// TODO: Should we log this?
Logger::log( __( 'WooPay blog_token is currently misconfigured.', 'woocommerce-payments' ) );
return '';
}
}
Expand Down

0 comments on commit 2253cdb

Please sign in to comment.