1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar@debian.org>
Date: Fri, 6 Apr 2012 13:23:15 +0200
Subject: Add support for Apache 2.4 log API
---
mod_upload_progress.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mod_upload_progress.c b/mod_upload_progress.c
index 9970b61..c0b57f7 100644
--- a/mod_upload_progress.c
+++ b/mod_upload_progress.c
@@ -61,8 +61,12 @@
# define ARG_MAXLEN_JSONPCALLBACK 64
#endif
+#ifdef APLOG_USE_MODULE
+APLOG_USE_MODULE(upload_progress);
+#endif
+
#if UP_DEBUG > 0
-# if UP_DEBUG > 1
+# if !defined(APLOG_USE_MODULE) && UP_DEBUG > 1
# define up_log(m,s,err,srv,fmtstr,...) ap_log_error( m, s, err, srv, "pid:%" APR_PID_T_FMT " " fmtstr, getpid(), ##__VA_ARGS__ )
# else
# define up_log(...) ap_log_error( __VA_ARGS__ )
|