Indicate the message has been truncated when we log it.

This commit is contained in:
Andrew McMillan 2006-12-28 13:08:41 +13:00
parent 402ed54bfb
commit 89bae63b1c

View File

@ -501,7 +501,7 @@ class CalDAVRequest
echo $message; echo $message;
if ( strlen($message) > 100 || strstr($message, "\n") ) { if ( strlen($message) > 100 || strstr($message, "\n") ) {
$message = substr( preg_replace("#\s+#m", ' ', $message ), 0, 100); $message = substr( preg_replace("#\s+#m", ' ', $message ), 0, 100) + "...";
} }
dbg_error_log("caldav", "Status: %d, Message: %s, User: %d, Path: %s", $status, $message, $session->user_no, $this->path); dbg_error_log("caldav", "Status: %d, Message: %s, User: %d, Path: %s", $status, $message, $session->user_no, $this->path);