* [ANN] cmogstored 1.4.2 - log unlink failures
@ 2015-03-06 2:37 6% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-03-06 2:37 UTC (permalink / raw)
To: cmogstored-public, mogile
This release is to enable logging of unlink errors from the
filesystem (all other local filesystem errors should be logged).
Some minor doc/packaging/copyright year updates, too.
shortlog of changes since 1.4.2:
* Makefile.am: gzip README and associated data
* manpage: update contact and copyright information
* update copyrights to 2014 (and all contributors)
* doc/design.txt: add a few more notes on compromises
* http_dav: log 500 errors from DELETE requests
* tapset/http_access_log: note CLF differences
* copyright updates for 2015
http://bogomips.org/cmogstored/files/cmogstored-1.4.2.tar.gz
SHA-1 296e6804760325bd4946ebe0c4cc005d222e93fb
* homepage: http://bogomips.org/cmogstored/README
* git clone git://bogomips.org/cmogstored.git
* cgit: http://bogomips.org/cmogstored.git
* gitweb: http://repo.or.cz/w/cmogstored.git
* list: cmogstored-public@bogomips.org (subscription optional)
* archives: http://bogomips.org/cmogstored-public/
^ permalink raw reply [relevance 6%]
* [PATCH] http_dav: log 500 errors from DELETE requests
@ 2015-02-05 21:56 7% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-02-05 21:56 UTC (permalink / raw)
To: cmogstored-public; +Cc: Eric Wong
Errors on failed unlink can be a prelude to a bigger problem, so
log it locally ourselves even if the tracker will notice it.
This commit was tested manually by setting up cmogstored to point to a
read-only mount point on my system and attempting a DELETE request on
it.
---
http_dav.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/http_dav.c b/http_dav.c
index 8487e13..ad7c80d 100644
--- a/http_dav.c
+++ b/http_dav.c
@@ -46,6 +46,8 @@ forbidden:
PRESERVE_ERRNO(do {
mog_http_resp(mfd, "500 Internal Server Error", true);
} while(0));
+ syslog(LOG_ERR, "Failed to unlink %s (in %s): %m",
+ path, http->svc->docroot);
}
void mog_http_mkcol(struct mog_fd *mfd, char *buf)
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-02-05 21:56 7% [PATCH] http_dav: log 500 errors from DELETE requests Eric Wong
2015-03-06 2:37 6% [ANN] cmogstored 1.4.2 - log unlink failures Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/cmogstored.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).