修正Browser日志驱动

This commit is contained in:
thinkphp
2016-06-14 23:58:45 +08:00
parent f4bf3620e9
commit ea8bad7759

View File

@@ -138,8 +138,8 @@ JS;
break;
default:
$m = is_string($key)? $key . ' ' . $m : $key+1 . ' ' . $m;
$msg = str_replace(PHP_EOL, '\n', $m);
$line[] = "console.log(\"{$msg}\");";
$msg = json_encode($m);
$line[] = "console.log({$msg});";
break;
}
}