diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-23 18:12:42 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-23 18:12:42 +0000 |
| commit | 5224afd2a01e057e8bb2631b07b32498bd59684b (patch) | |
| tree | 76aecc0ede2c6a7d5bc9c03ebcd60f0c311fffca /roundcubemail/program/include/bugs.inc | |
| parent | 95a80cea4ae95a556e6a3ef82779a0f8c1275f6d (diff) | |
- Added log_date_format option (#1485709)
git-svn-id: https://svn.roundcube.net/trunk@2419 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/bugs.inc')
| -rw-r--r-- | roundcubemail/program/include/bugs.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/include/bugs.inc b/roundcubemail/program/include/bugs.inc index 869022bcf..c5dac1e08 100644 --- a/roundcubemail/program/include/bugs.inc +++ b/roundcubemail/program/include/bugs.inc @@ -69,12 +69,15 @@ function log_bug($arg_arr) global $CONFIG; $program = strtoupper($arg_arr['type']); + if (empty($CONFIG['log_date_format'])) + $CONFIG['log_date_format'] = 'd-M-Y H:i:s O'; + // 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%s (%s %s)\n", - date("d-M-Y H:i:s O", mktime()), + date($CONFIG['log_date_format']), $program, $arg_arr['message'], $arg_arr['file'] ? sprintf(' in %s on line %d', $arg_arr['file'], $arg_arr['line']) : '', |
