Update of /cvsroot/mod-c/ehtml/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10891/src
Modified Files:
EHTMLApplication.cpp
Log Message:
* Fixed debugging framework.
Index: EHTMLApplication.cpp
===================================================================
RCS file: /cvsroot/mod-c/ehtml/src/EHTMLApplication.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** EHTMLApplication.cpp 4 Oct 2006 16:37:23 -0000 1.15
--- EHTMLApplication.cpp 5 Oct 2006 14:52:52 -0000 1.16
***************
*** 222,234 ****
va_list l;
va_start (l, fmt);
! Error(fmt, l);
va_end(l);
}
void EHTMLApplication::Error(const char* fmt, va_list l) const {
! va_list l2;
! va_copy (l2, l);
! Log(APLOG_ERR, fmt, l2);
! va_end(l2);
}
--- 222,231 ----
va_list l;
va_start (l, fmt);
! Log(APLOG_ERR, fmt, l);
va_end(l);
}
void EHTMLApplication::Error(const char* fmt, va_list l) const {
! Log(APLOG_ERR, fmt, l);
}
***************
*** 240,243 ****
--- 237,244 ----
}
+ void EHTMLApplication::Debug(const char* fmt, va_list l) const {
+ Log(APLOG_DEBUG, fmt, l);
+ }
+
static const char* prefix(int level) {
switch (level) {
|