commit 82f4a43b735984b45d57dbf3e272f53e1e165296 parent 0faa1987195bc3ef14bf0430fe97fb0ac7a43297 Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 27 Oct 2020 17:29:31 +0100 fix logger initialization when options are changed Diffstat:
| M | class-wc-gnutaler-gateway.php | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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;