Skip to content

Commit 3874aa2

Browse files
committed
ruleproc: add gromox.cfg:ruleproc_debug config directive
1 parent fa83245 commit 3874aa2

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

doc/gromox.cfg.5

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ cannot be lower than 4s. The special value 0 disabled RPC timeout checking.
5454
.br
5555
Default: \fI0\fP
5656
.TP
57+
\fBruleproc_debug\fP
58+
Make the "TWOSTEP" Client-Side Inbox Rule Processor emit information about the
59+
conditions it is evaluating and the actions it is carrying out. The surrounding
60+
process also needs to have log level set to at least 6 (debug) to see anything,
61+
i.e. delivery.cfg:lda_log_level=6 in case of delivery(8gx), or \-\-loglevel=6
62+
in case of command-line tools like case of gromox\-mt2exm(8). [The Rule
63+
Processor implementation inside exmdb_provider(8gx) logs unconditionally, and
64+
its log messages will be seen, provided level 6 is set with
65+
http.cfg:http_log_level=6.]
66+
.br
67+
Default: \fIoff\fP
68+
.TP
5769
\fBreported_server_version\fP
5870
.br
5971
Default: \fI15.00.0847.4040\fP

include/gromox/exmdb_rpc.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,4 +1392,3 @@ extern GX_EXPORT BOOL exmdb_client_write_socket(int, std::string_view, long time
13921392

13931393
extern GX_EXPORT void *(*exmdb_rpc_alloc)(size_t);
13941394
extern GX_EXPORT void (*exmdb_rpc_free)(void *);
1395-
extern GX_EXPORT unsigned int g_ruleproc_debug;

lib/ruleproc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,7 @@ static ec_error_t exmdb_local_rules_execute(const char *dir, const char *ev_from
13641364
}
13651365

13661366
static constexpr cfg_directive rp_config_defaults[] = {
1367+
{"ruleproc_debug", "0", CFG_BOOL},
13671368
{"outgoing_smtp_url", "sendmail://localhost"},
13681369
CFG_TABLE_END,
13691370
};

0 commit comments

Comments
 (0)