From 18ccec6eb60f93e7a4afe520165c54332b5ceac0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 3 Jan 2008 21:29:01 +0000 Subject: [PATCH] add log --- src/http/modules/ngx_http_dav_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c index f317f08b8..d94422f32 100644 --- a/src/http/modules/ngx_http_dav_module.c +++ b/src/http/modules/ngx_http_dav_module.c @@ -759,10 +759,15 @@ overwrite_done: /* destination exists */ if (ngx_is_dir(&fi) && !slash) { + ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, + "\"%V\" could not be %Ved to collection \"%V\"", + &r->uri, &r->method_name, &dest->value); return NGX_HTTP_CONFLICT; } if (!overwrite) { + ngx_log_error(NGX_LOG_ERR, r->connection->log, NGX_EEXIST, + "\"%s\" could not be created", copy.path.data); return NGX_HTTP_PRECONDITION_FAILED; }