Permalink
Browse files

Add debugging for very unlikely condition in track_upload_progress

Signed-off-by: Michał Pokrywka <michal.pokrywka@gmail.com>
  • Loading branch information...
1 parent 37a4c1b commit 2163c1a4f82f1af210c14c0cfca0bed7c8d297bd @mpokrywka mpokrywka committed Feb 28, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod_upload_progress.c
View
5 mod_upload_progress.c
@@ -302,7 +302,10 @@ static int track_upload_progress(ap_filter_t *f, apr_bucket_brigade *bb,
int param_error;
const char* id = get_progress_id(f->r, &param_error);
- if (id == NULL) return rv;
+ if (id == NULL) {
+ up_log(APLOG_MARK, APLOG_DEBUG, 0, server, "Progress id not found, param_error %i", param_error);
+ return rv;
+ }
CACHE_LOCK();
node = find_node(f->r, id);

0 comments on commit 2163c1a

Please sign in to comment.