From: Ralph Boehme Date: Wed, 15 Oct 2025 12:56:51 +0000 (+0200) Subject: mdssvc: reduce a log level to DEBUG X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b2b50983901ad5039124b82f149b30675c80a9a;p=thirdparty%2Fsamba.git mdssvc: reduce a log level to DEBUG The expression InRange(*,$time.iso(2024-12-31T23:00:00Z),$time.iso(2025-12-31T23:00:00Z)) in a Spotlight query produces the following log message: map_fts: Mapping fts [757378800] unexpected op [~] However, when elasticsearch:ignore unknown attribute = yes is set, the parser will ignore the failed expression and continue parsing given the expression is part of a larger expression like "subexpression1 OR subexpression2". Avoid spamming the log and reduce the loglevel when we hit this case. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15930 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/source3/rpc_server/mdssvc/es_parser.y b/source3/rpc_server/mdssvc/es_parser.y index 62ca63d90f2..cea2ce8eb0c 100644 --- a/source3/rpc_server/mdssvc/es_parser.y +++ b/source3/rpc_server/mdssvc/es_parser.y @@ -412,7 +412,7 @@ static char *map_fts(const struct es_attr_map *attr, end = ")"; break; default: - DBG_ERR("Mapping fts [%s] unexpected op [%c]\n", val, op); + DBG_DEBUG("Mapping fts [%s] unexpected op [%c]\n", val, op); return NULL; }