Add a way to log xml payload on kolab format error
This commit is contained in:
parent
2129b4e2c0
commit
5e3b3c455a
1 changed files with 6 additions and 0 deletions
|
@ -571,6 +571,12 @@ class kolab_storage_folder extends kolab_storage_folder_api
|
|||
if (preg_match('!<uid>(.+)</uid>!Uims', $xml, $m))
|
||||
$msgadd = " UID = " . trim(strip_tags($m[1]));
|
||||
|
||||
$rcmail = rcube::get_instance();
|
||||
|
||||
if ($rcmail->config->get('kolab_format_error_log') && ($log_dir = $rcmail->get_user_log_dir())) {
|
||||
file_put_contents("$log_dir/$msguid.xml", $xml);
|
||||
}
|
||||
|
||||
rcube::raise_error(array(
|
||||
'code' => 600,
|
||||
'type' => 'php',
|
||||
|
|
Loading…
Add table
Reference in a new issue