Skip to content

Commit

Permalink
Fix error log messages incorrecty categorized as info (#9890)
Browse files Browse the repository at this point in the history
Co-authored-by: Shendy <[email protected]>
  • Loading branch information
brucealdridge and shendy-a8c authored Dec 8, 2024
1 parent c241ed6 commit 737aca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/fix-9889-log-level
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Errors were incorrectly marked as info in logs.
2 changes: 1 addition & 1 deletion includes/class-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Logger {
* 'debug': Debug-level messages.
*/
public static function log( $message, $level = 'info' ) {
wcpay_get_container()->get( InternalLogger::class )->log( $message );
wcpay_get_container()->get( InternalLogger::class )->log( $message, $level );
}

/**
Expand Down

0 comments on commit 737aca0

Please sign in to comment.