Skip to content

Commit

Permalink
view-error500-log 工具完善
Browse files Browse the repository at this point in the history
  • Loading branch information
breath-co2 committed Jan 8, 2013
1 parent eaaf0fe commit a6d0316
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions bin/view-error500-log
Original file line number Diff line number Diff line change
Expand Up @@ -150,32 +150,36 @@ else

echo "\x1b[32m当前项目 :\x1b[33m{$data['project']} (".Core::config('core.projects.'.$data['project'].'.name').")\x1b[39m\n";
echo "\x1b[32m请求URI :\x1b[33m{$data['uri']}\x1b[39m\n";
echo "\x1b[32m请求URL :\x1b[33m{$data['url']}\x1b[39m\n";
echo "\x1b[32m引用页 :\x1b[33m{$data['referrer']}\x1b[39m\n";
echo "\x1b[32m浏览器信息:\x1b[33m{$data['user_agent']}\x1b[39m\n";
echo "\x1b[32m服务器名 :\x1b[33m{$data['server_name']}\x1b[39m\n";
echo "\x1b[32m服务器IP :\x1b[33m{$data['server_ip']}\x1b[39m\n";
echo "\x1b[32m用户IP \x1b[33m{$data['client_ip']}\x1b[39m\n";
echo "\x1b[32m客户端IP\x1b[33m{$data['client_ip']}\x1b[39m\n";
echo "\x1b[32m请求时间 :\x1b[33m".date('Y-m-d H:i:s',$data['time'])."\x1b[39m\n";
echo "\x1b[32m执行时间 :\x1b[33m{$data['use_time']}\x1b[39m\n";
if ($data['get'])
{
echo "\n\x1b[32m================================ GET =======================================\x1b[39m";
print_r($data['get']);
echo "\n\x1b[32m================================ QueryString ===============================\x1b[39m";
echo "\n";
echo $data['get'];
echo "\n";
}
if ($data['post'])
{
echo "\n\x1b[32m================================ POST ======================================\x1b[39m";
print_r($data['post']);
echo "\n";
var_export($data['post']);
echo ";\n";
}
if ($data['cookie'])
{
echo "\n\x1b[32m================================ COOKIE ====================================\x1b[39m";
print_r($data['cookie']);
echo "\n";
var_export($data['cookie']);
echo ";\n";
}
echo "\n\n";
echo "\n";
echo "\x1b[32m================================ Trace =====================================\x1b[39m";
echo "\n" . (string)$obj . "\n\n\n";
}
Expand Down

0 comments on commit a6d0316

Please sign in to comment.