]> git.kaiwu.me - nginx.git/commitdiff
add log
authorIgor Sysoev <igor@sysoev.ru>
Thu, 3 Jan 2008 21:29:01 +0000 (21:29 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 3 Jan 2008 21:29:01 +0000 (21:29 +0000)
src/http/modules/ngx_http_dav_module.c

index f317f08b8780466f46cbb78546f98afff792c06f..d94422f3200029282211a728e8fe5769e1e365b4 100644 (file)
@@ -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;
         }