]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
mdssvc: reduce a log level to DEBUG
authorRalph Boehme <slow@samba.org>
Wed, 15 Oct 2025 12:56:51 +0000 (14:56 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 20 Oct 2025 09:46:30 +0000 (09:46 +0000)
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 <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/rpc_server/mdssvc/es_parser.y

index 62ca63d90f20912d441a6220035033eafc99aa55..cea2ce8eb0c6ab1e3055c532941621112da86697 100644 (file)
@@ -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;
        }