stop CalDAVTester from creating one log per test-step

This commit is contained in:
Ralf Becker 2013-09-25 07:46:02 +00:00
parent ba73deee9f
commit d4c2ed3f65

View File

@ -1939,9 +1939,16 @@ class groupdav extends HTTP_WebDAV_Server
error_log(__METHOD__."() Could NOT create directory '$msg_file'!"); error_log(__METHOD__."() Could NOT create directory '$msg_file'!");
return; return;
} }
$msg_file .= '/'.$GLOBALS['egw_info']['user']['account_lid'].'-'. $msg_file .= '/'.$GLOBALS['egw_info']['user']['account_lid'].'-';
str_replace('/','!',$_SERVER['HTTP_USER_AGENT']).'.log'; // stop CalDAVTester from creating one log per test-step
if (substr($_SERVER['HTTP_USER_AGENT'], 0, 14) == 'scripts/tests/')
{
$msg_file .= 'CalDAVTester.log';
}
else
{
$msg_file .= str_replace('/','!',$_SERVER['HTTP_USER_AGENT']).'.log';
}
$content = '*** '.$_SERVER['REMOTE_ADDR'].' '.date('c')."\n"; $content = '*** '.$_SERVER['REMOTE_ADDR'].' '.date('c')."\n";
} }
$content .= $_SERVER['REQUEST_METHOD'].' '.$_SERVER['REQUEST_URI'].' HTTP/1.1'."\n"; $content .= $_SERVER['REQUEST_METHOD'].' '.$_SERVER['REQUEST_URI'].' HTTP/1.1'."\n";