diff --git a/src/log.c b/src/log.c index 2cde78831..31295d288 100644 --- a/src/log.c +++ b/src/log.c @@ -3635,7 +3635,7 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t struct sample *key; const struct buffer empty = { }; - if (ctx.options & LOG_OPT_ENCODE) { + if (g_options & LOG_OPT_ENCODE) { /* only consider global ctx for key encoding */ lf_buildctx_prepare(&ctx, g_options, NULL);