You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2022/06/23 19:57:53 UTC

[tomcat-connectors] branch main updated: Switch from logger to log context - part 4:

This is an automated email from the ASF dual-hosted git repository.

rjung pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new cff588fca Switch from logger to log context - part 4:
cff588fca is described below

commit cff588fca050b4ce3cd73a380c6df2330338b880
Author: Rainer Jung <ra...@kippdata.de>
AuthorDate: Thu Jun 23 21:57:11 2022 +0200

    Switch from logger to log context - part 4:
    
    - finish the changes to the common part. That should
      no compile and work.
---
 native/common/jk_msg_buff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/native/common/jk_msg_buff.c b/native/common/jk_msg_buff.c
index 2e02928af..c6b4a3c4e 100644
--- a/native/common/jk_msg_buff.c
+++ b/native/common/jk_msg_buff.c
@@ -317,9 +317,9 @@ void jk_dump_buff(jk_log_context_t *l,
     int j;
     int len = msg->len;
 
-    if (l == NULL)
+    if (l == NULL || l->logger == NULL)
         return;
-    if (l->level != JK_LOG_TRACE_LEVEL && len > 1024)
+    if (l->logger->level != JK_LOG_TRACE_LEVEL && len > 1024)
         len = 1024;
 
     jk_log(l, file, line, funcname, level,


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org