Skip to content

Commit

Permalink
Fix #601 (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyoung authored and overtrue committed May 18, 2017
1 parent 5f79f05 commit b2dfb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static function createDefaultLogger()
{
$log = new Logger('EasyWeChat');

if (defined('PHPUNIT_RUNNING')) {
if (defined('PHPUNIT_RUNNING') || php_sapi_name() == 'cli') {
$log->pushHandler(new NullHandler());
} else {
$log->pushHandler(new ErrorLogHandler());
Expand Down

0 comments on commit b2dfb3f

Please sign in to comment.