comparison src/http/modules/ngx_http_dav_module.c @ 1824:8299cd253745

add log
author Igor Sysoev <igor@sysoev.ru>
date Thu, 03 Jan 2008 21:29:01 +0000
parents 5ae4cace0727
children 2e0fbfef56d4
comparison
equal deleted inserted replaced
1823:5ae4cace0727 1824:8299cd253745
757 } else { 757 } else {
758 758
759 /* destination exists */ 759 /* destination exists */
760 760
761 if (ngx_is_dir(&fi) && !slash) { 761 if (ngx_is_dir(&fi) && !slash) {
762 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
763 "\"%V\" could not be %Ved to collection \"%V\"",
764 &r->uri, &r->method_name, &dest->value);
762 return NGX_HTTP_CONFLICT; 765 return NGX_HTTP_CONFLICT;
763 } 766 }
764 767
765 if (!overwrite) { 768 if (!overwrite) {
769 ngx_log_error(NGX_LOG_ERR, r->connection->log, NGX_EEXIST,
770 "\"%s\" could not be created", copy.path.data);
766 return NGX_HTTP_PRECONDITION_FAILED; 771 return NGX_HTTP_PRECONDITION_FAILED;
767 } 772 }
768 773
769 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 774 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
770 "http delete: \"%s\"", copy.path.data); 775 "http delete: \"%s\"", copy.path.data);