summaryrefslogtreecommitdiff
blob: 504799caedf33d9a468a848b5a021f5eef8cebe6 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
diff -urN mod-xslt-1.0.5a/src/logging.c mod-xslt-1.0.5a-nodebug/src/logging.c
--- mod-xslt-1.0.5a/src/logging.c	2002-08-13 12:03:07.000000000 +0200
+++ mod-xslt-1.0.5a-nodebug/src/logging.c	2003-07-23 12:05:31.000000000 +0200
@@ -49,7 +49,6 @@
 #ifndef LOGLEVEL
 #define LOGLEVEL 8
 #endif
-#define DEBUG
 
 #ifndef LOGPREFIX
 #define LOGPREFIX "mod-xslt: %s"
@@ -59,7 +58,7 @@
 
 void initLog(request_rec* r) {
 	request=r;
-	writeLog(7,"start logging");
+	writeLog(APLOG_DEBUG, "start logging");
 	return;
 }
 
@@ -84,7 +83,7 @@
 #endif
 		if ((tmplen > 0) & (temp != NULL)) {
 			if (temp[0] != 0) {
-				ap_log_rerror(APLOG_MARK,level, 0, request, LOGPREFIX, temp);
+				ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|level, 0, request, LOGPREFIX, temp);
 			}
 		}
 	}
@@ -93,7 +92,7 @@
 }
 
 void finiLog() {
-	writeLog(7,"stop logging");
+	writeLog(APLOG_DEBUG,"stop logging");
 	request=NULL;
 	return;
 }
diff -urN mod-xslt-1.0.5a/src/mod-xslt.c mod-xslt-1.0.5a-nodebug/src/mod-xslt.c
--- mod-xslt-1.0.5a/src/mod-xslt.c	2002-10-27 19:16:41.000000000 +0100
+++ mod-xslt-1.0.5a-nodebug/src/mod-xslt.c	2003-07-23 12:03:07.000000000 +0200
@@ -106,7 +106,7 @@
 	tmplen = vsnprintf(temp,tmplen,msg,args);
 	va_end;
 	temp[tmplen] = 0;
-	writeLog(APLOG_NOTICE,temp);
+	writeLog(APLOG_ERR, temp);
 	free(temp);
 	return;
 }
@@ -313,13 +313,13 @@
 }
 
 static apr_status_t xslt_child_exit(void *data) {
-	ap_log_perror(APLOG_MARK,APLOG_NOTICE, 0, (apr_pool_t *)data, "Finalizing Child");
+	ap_log_perror(APLOG_MARK,APLOG_NOERRNO|APLOG_DEBUG, 0, (apr_pool_t *)data, "Finalizing Child");
 	xmlCleanupParser();
 	xmlMemoryDump();
 }
 
 static void xslt_child_init(apr_pool_t *p, server_rec *s) {
-	ap_log_perror(APLOG_MARK,APLOG_NOTICE, 0, p, "Initializing Child");	
+	ap_log_perror(APLOG_MARK,APLOG_NOERRNO|APLOG_DEBUG, 0, p, "Initializing Child");	
 	apr_pool_cleanup_register(p, p, xslt_child_exit, xslt_child_exit);
 	xmlInitMemory();
 	xmlLineNumbersDefault(XSL_LINENUMBERSDEFAULT);