Skip to content

Commit

Permalink
stop polluting users with harmless messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste Daroussin committed Aug 19, 2015
1 parent d414326 commit 34ab793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libpkg/pkg_manifest.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ pkg_set_files_from_object(struct pkg *pkg, const ucl_object_t *obj)
else
perm = getmode(set, 0);
} else {
pkg_emit_error("Skipping unknown key for file(%s): %s",
pkg_debug(1, "Skipping unknown key for file(%s): %s",
sbuf_data(fname), key);
}
}
Expand Down Expand Up @@ -675,7 +675,7 @@ pkg_set_dirs_from_object(struct pkg *pkg, const ucl_object_t *obj)
} else if (!strcasecmp(key, "try") && cur->type == UCL_BOOLEAN) {
/* ignore on purpose : compatibility*/
} else {
pkg_emit_error("Skipping unknown key for dir(%s): %s",
pkg_debug(1, "Skipping unknown key for dir(%s): %s",
sbuf_data(dirname), key);
}
}
Expand Down Expand Up @@ -751,7 +751,7 @@ parse_manifest(struct pkg *pkg, struct pkg_manifest_key *keys, ucl_object_t *obj
pkg_emit_error("Skipping malformed key '%s'", key);
}
} else {
pkg_emit_error("Skipping unknown key '%s'", key);
pkg_debug(1, "Skipping unknown key '%s'", key);
}
}

Expand Down

0 comments on commit 34ab793

Please sign in to comment.