From: Ralph Boehme Date: Sat, 9 Oct 2021 16:50:02 +0000 (+0200) Subject: mdssvc: prepare for ignore attribute and type mapping errors X-Git-Tag: ldb-2.5.0~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c67432378910691456f1deec3d5a8a73a6080887;p=thirdparty%2Fsamba.git mdssvc: prepare for ignore attribute and type mapping errors Lower the debug levels to debug from error. No change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Noel Power --- diff --git a/source3/rpc_server/mdssvc/es_mapping.c b/source3/rpc_server/mdssvc/es_mapping.c index 5c71e503bf5..577fc38e912 100644 --- a/source3/rpc_server/mdssvc/es_mapping.c +++ b/source3/rpc_server/mdssvc/es_mapping.c @@ -179,7 +179,7 @@ struct es_attr_map *es_map_sl_attr(TALLOC_CTX *mem_ctx, "type", &typestr); if (ret != 0) { - DBG_ERR("No JSON type mapping for [%s]\n", sl_attr); + DBG_DEBUG("No JSON type mapping for [%s]\n", sl_attr); return NULL; } diff --git a/source3/rpc_server/mdssvc/es_parser.y b/source3/rpc_server/mdssvc/es_parser.y index 764f4bc5c20..68a3e060bd1 100644 --- a/source3/rpc_server/mdssvc/es_parser.y +++ b/source3/rpc_server/mdssvc/es_parser.y @@ -247,7 +247,7 @@ static char *map_type(const struct es_attr_map *attr, mime_type_list = es_map_sl_type(s->mime_map, val); if (mime_type_list == NULL) { - DBG_ERR("Mapping type [%s] failed\n", val); + DBG_DEBUG("Mapping type [%s] failed\n", val); return NULL; } @@ -553,8 +553,8 @@ static char *map_expr(const struct es_attr_map *attr, break; } if (es == NULL) { - DBG_ERR("Mapping [%s %c %s (%s)] failed\n", - attr->name, op, val1, val2 ? val2 : ""); + DBG_DEBUG("Mapping [%s %c %s (%s)] failed\n", + attr->name, op, val1, val2 ? val2 : ""); return NULL; }