summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-27 17:29:31 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-27 17:29:31 +0100
commit82f4a43b735984b45d57dbf3e272f53e1e165296 (patch)
tree05f3d6ca01f09a5db1db92cb92d196389f2f11da
parent0faa1987195bc3ef14bf0430fe97fb0ac7a43297 (diff)
downloadgnu-taler-payment-for-woocommerce-82f4a43b735984b45d57dbf3e272f53e1e165296.tar.gz
gnu-taler-payment-for-woocommerce-82f4a43b735984b45d57dbf3e272f53e1e165296.tar.bz2
gnu-taler-payment-for-woocommerce-82f4a43b735984b45d57dbf3e272f53e1e165296.zip
fix logger initialization when options are changed
-rw-r--r--class-wc-gnutaler-gateway.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/class-wc-gnutaler-gateway.php b/class-wc-gnutaler-gateway.php
index e9c01f5..dfddfe0 100644
--- a/class-wc-gnutaler-gateway.php
+++ b/class-wc-gnutaler-gateway.php
@@ -284,10 +284,10 @@ function gnutaler_init_gateway_class() {
// Maybe clear logs.
if ( 'yes' !== $this->get_option( 'debug', 'no' ) ) {
- if ( empty( self::$log ) ) {
- self::$log = wc_get_logger();
+ if ( empty( self::$logger ) ) {
+ self::$logger = wc_get_logger();
}
- self::$log->clear( 'gnutaler' );
+ self::$logger->clear( 'gnutaler' );
}
return $saved;