Skip to content

Commit

Permalink
change the log level to error for conditional attribute check (#141)
Browse files Browse the repository at this point in the history
the log level should match the return value, since the return value is error,
the log level should be error too.
  • Loading branch information
lguohan authored Jan 4, 2017
1 parent d1c6eb8 commit 06d7b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/sai_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ sai_status_t meta_generic_validation_create(
// maybe we can let it go here?
if (attrs.find(md.attrid) != attrs.end())
{
META_LOG_DEBUG(md, "conditional, but condition was not met, this attribute is not required, but passed");
META_LOG_ERROR(md, "conditional, but condition was not met, this attribute is not required, but passed");

return SAI_STATUS_INVALID_PARAMETER;
}
Expand Down

0 comments on commit 06d7b11

Please sign in to comment.