From 0ff6b9dd4be130cb37f1b668d037fa3bf46a87f3 Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Wed, 21 Dec 2016 14:19:30 +0000 Subject: [PATCH] change the log level to error for conditional attribute check the log level should match the return value, since the return value is error, the log level should be error too. --- meta/sai_meta.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/sai_meta.cpp b/meta/sai_meta.cpp index f81a54402..0f6621073 100644 --- a/meta/sai_meta.cpp +++ b/meta/sai_meta.cpp @@ -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; }