Skip to content

Commit f2b6767

Browse files
committed
log error to woo logger
1 parent 9e4220c commit f2b6767

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/includes/Helper.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ public static function resetSetup()
144144

145145
public static function log($info)
146146
{
147+
148+
try {
149+
wc_get_logger()->debug($info, array( 'source' => 'beans' ));
150+
} catch (\Exception $e) {
151+
}
152+
147153
if (file_exists(self::LOG_FILE) && filesize(self::LOG_FILE) > 100000) {
148154
unlink(self::LOG_FILE);
149155
}

0 commit comments

Comments
 (0)