You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2004/07/27 14:09:12 UTC
cvs commit: jakarta-tomcat-connectors/ajp/ajplib/test testajp.c httpd_wrap.c
mturk 2004/07/27 05:09:12
Modified: ajp/ajplib/test testajp.c httpd_wrap.c
Log:
Forgot the loglevel. Quite rude and simple, but it will fulfill the needs.
Revision Changes Path
1.2 +6 -0 jakarta-tomcat-connectors/ajp/ajplib/test/testajp.c
Index: testajp.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/testajp.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testajp.c 27 Jul 2004 11:43:42 -0000 1.1
+++ testajp.c 27 Jul 2004 12:09:12 -0000 1.2
@@ -44,6 +44,12 @@
int rv = 0;
apr_app_initialize(&argc, &argv, &env);
+
+ /* This is done in httpd.conf using LogLevel debug directive.
+ * We are setting this directly.
+ */
+ ap_default_loglevel = APLOG_DEBUG;
+
ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, "Testing ajp...");
1.2 +6 -1 jakarta-tomcat-connectors/ajp/ajplib/test/httpd_wrap.c
Index: httpd_wrap.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/httpd_wrap.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- httpd_wrap.c 27 Jul 2004 11:42:57 -0000 1.1
+++ httpd_wrap.c 27 Jul 2004 12:09:12 -0000 1.2
@@ -33,6 +33,8 @@
#include "httpd_wrap.h"
+int AP_DECLARE_DATA ap_default_loglevel = DEFAULT_LOGLEVEL;
+
static const char *levels[] = {
"emerg",
"alert",
@@ -52,7 +54,10 @@
FILE *stream;
char timstr[32];
char errstr[MAX_STRING_LEN];
-
+
+ /* Skip the loging for lower levels */
+ if (level < 0 || level > ap_default_loglevel)
+ return;
if (level < APLOG_WARNING)
stream = stderr;
else
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-tomcat-connectors/ajp/ajplib/test testajp.c
httpd_wrap.c
Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Henri Gomez wrote:
> Mladen Turk wrote:
>
>>
>>
>> Henri Gomez wrote:
>>
>>> Mladen what about commiting your work on mod_ajp.
>>>
>>> Even if we didn't take any decisions yet, it will be usefull to have
>>> it save somewhere in ASF CVS ;)
>>>
>>
>>
>> It's on the apache web site, so it won't get lost, cause I have no
>> intent to
>> remove it :)
>> Let's wait for a while on creating any new directories, cause they
>> cannot be
>> erased once created.
>>
>> It can wait, at least until we have a libajp+testajp capable of getting
>> HelloWorldExample servlet, thought
>> We won't have a SSL support for start, but IMO when we reach that phase
>> we'll have a clearer picture on the underlying framework.
>
>
> Ok, I hope JFC could make us a configure/makefile for Unixes.
I have just committed a primitive Makefile to help testing on Unix.
>
> I'm working on some ajp functions right now. I may commit them
> before end of day.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-tomcat-connectors/ajp/ajplib/test testajp.c
httpd_wrap.c
Posted by Henri Gomez <hg...@apache.org>.
Mladen Turk wrote:
>
>
> Henri Gomez wrote:
>
>>Mladen what about commiting your work on mod_ajp.
>>
>>Even if we didn't take any decisions yet, it will be usefull
>>to have it save somewhere in ASF CVS ;)
>>
>
>
> It's on the apache web site, so it won't get lost, cause I have no intent to
> remove it :)
> Let's wait for a while on creating any new directories, cause they cannot be
> erased once created.
>
> It can wait, at least until we have a libajp+testajp capable of getting
> HelloWorldExample servlet, thought
> We won't have a SSL support for start, but IMO when we reach that phase
> we'll have a clearer picture on the underlying framework.
Ok, I hope JFC could make us a configure/makefile for Unixes.
I'm working on some ajp functions right now. I may commit them
before end of day.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
RE: cvs commit: jakarta-tomcat-connectors/ajp/ajplib/test testajp.c httpd_wrap.c
Posted by Mladen Turk <mt...@apache.org>.
Henri Gomez wrote:
>
> Mladen what about commiting your work on mod_ajp.
>
> Even if we didn't take any decisions yet, it will be usefull
> to have it save somewhere in ASF CVS ;)
>
It's on the apache web site, so it won't get lost, cause I have no intent to
remove it :)
Let's wait for a while on creating any new directories, cause they cannot be
erased once created.
It can wait, at least until we have a libajp+testajp capable of getting
HelloWorldExample servlet, thought
We won't have a SSL support for start, but IMO when we reach that phase
we'll have a clearer picture on the underlying framework.
MT.
Re: cvs commit: jakarta-tomcat-connectors/ajp/ajplib/test testajp.c
httpd_wrap.c
Posted by Henri Gomez <hg...@apache.org>.
mturk@apache.org wrote:
> mturk 2004/07/27 05:09:12
Mladen what about commiting your work on mod_ajp.
Even if we didn't take any decisions yet, it will
be usefull to have it save somewhere in ASF CVS ;)
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org