Skip to content

Commit

Permalink
mdssvc: prepare for ignore attribute and type mapping errors
Browse files Browse the repository at this point in the history
Lower the debug levels to debug from error. No change in behaviour.

Signed-off-by: Ralph Boehme <[email protected]>
Reviewed-by: Noel Power <[email protected]>
  • Loading branch information
slowfranklin authored and Noel Power committed Oct 14, 2021
1 parent 2321467 commit c674323
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source3/rpc_server/mdssvc/es_mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
6 changes: 3 additions & 3 deletions source3/rpc_server/mdssvc/es_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit c674323

Please sign in to comment.