]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
mdssvc: prepare for ignore attribute and type mapping errors
authorRalph Boehme <slow@samba.org>
Sat, 9 Oct 2021 16:50:02 +0000 (18:50 +0200)
committerNoel Power <npower@samba.org>
Thu, 14 Oct 2021 09:33:38 +0000 (09:33 +0000)
Lower the debug levels to debug from error. No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/rpc_server/mdssvc/es_mapping.c
source3/rpc_server/mdssvc/es_parser.y

index 5c71e503bf535ef5ccc4c3af23ca974fd3885e64..577fc38e912cd2cd948a9a7816dbb033605695c7 100644 (file)
@@ -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;
        }
 
index 764f4bc5c2060a3b874e8f7b9da4ec2f1f5589f7..68a3e060bd1cbb0ca0b1be586205d6fdc674e758 100644 (file)
@@ -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;
        }