diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-20 12:57:18 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-20 12:57:18 +0000 |
| commit | 816d4de60b42f6c032695f0831434a81d4b2a2fb (patch) | |
| tree | 7f6cfdd77b2fbc3c24f34ee76a6528fa9b75299d /roundcubemail/program/include | |
| parent | 2460a5538a39f02471653cc64f7a92704ac303c5 (diff) | |
Add some post parameters to error log entry
git-svn-id: https://svn.roundcube.net/trunk@1863 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/bugs.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/bugs.inc b/roundcubemail/program/include/bugs.inc index f7a1fd55a..56b88c631 100644 --- a/roundcubemail/program/include/bugs.inc +++ b/roundcubemail/program/include/bugs.inc @@ -72,6 +72,7 @@ function log_bug($arg_arr) // write error to local log file if ($CONFIG['debug_level'] & 1) { + $post_query = ($_SERVER['REQUEST_METHOD'] == 'POST' ? '?_task='.urlencode($_POST['_task']).'&_action='.urlencode($_POST['_action']) : ''); $log_entry = sprintf("[%s] %s Error: %s in %s on line %d (%s %s)\n", date("d-M-Y H:i:s O", mktime()), $program, @@ -79,7 +80,7 @@ function log_bug($arg_arr) $arg_arr['file'], $arg_arr['line'], $_SERVER['REQUEST_METHOD'], - $_SERVER['REQUEST_URI']); + $_SERVER['REQUEST_URI'] . $post_query); if (empty($CONFIG['log_dir'])) $CONFIG['log_dir'] = INSTALL_PATH.'logs'; |
