Skip to content

Commit 11c386e

Browse files
authored
[syncd] always log ASIC operations performed after warm restart (#378)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
1 parent ebb9b7a commit 11c386e

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

syncd/syncd_applyview.cpp

+18-21
Original file line numberDiff line numberDiff line change
@@ -7072,36 +7072,33 @@ void executeOperationsOnAsic(
70727072
if (enableUnittests())
70737073
dumpComparisonLogicOutput(currentView);
70747074

7075-
if (enableRefernceCountLogs)
7076-
{
7077-
currentView.dumpVidToAsicOperatioId();
7075+
currentView.dumpVidToAsicOperatioId();
70787076

7079-
SWSS_LOG_NOTICE("NOT optimized operations");
7077+
SWSS_LOG_NOTICE("NOT optimized operations");
70807078

7081-
for (const auto &op: currentView.asicGetOperations())
7082-
{
7083-
const std::string &key = kfvKey(*op.op);
7084-
const std::string &opp = kfvOp(*op.op);
7079+
for (const auto &op: currentView.asicGetOperations())
7080+
{
7081+
const std::string &key = kfvKey(*op.op);
7082+
const std::string &opp = kfvOp(*op.op);
70857083

7086-
SWSS_LOG_WARN("%s: %s", opp.c_str(), key.c_str());
7084+
SWSS_LOG_NOTICE("%s: %s", opp.c_str(), key.c_str());
70877085

7088-
const auto &values = kfvFieldsValues(*op.op);
7086+
const auto &values = kfvFieldsValues(*op.op);
70897087

7090-
for (auto v: values)
7091-
{
7092-
SWSS_LOG_WARN("- %s %s", fvField(v).c_str(), fvValue(v).c_str());
7093-
}
7088+
for (auto v: values)
7089+
{
7090+
SWSS_LOG_NOTICE("- %s %s", fvField(v).c_str(), fvValue(v).c_str());
70947091
}
7092+
}
70957093

7096-
SWSS_LOG_NOTICE("optimized operations!");
7094+
SWSS_LOG_NOTICE("optimized operations!");
70977095

7098-
for (const auto &op: currentView.asicGetWithOptimizedRemoveOperations())
7099-
{
7100-
const std::string &key = kfvKey(*op.op);
7101-
const std::string &opp = kfvOp(*op.op);
7096+
for (const auto &op: currentView.asicGetWithOptimizedRemoveOperations())
7097+
{
7098+
const std::string &key = kfvKey(*op.op);
7099+
const std::string &opp = kfvOp(*op.op);
71027100

7103-
SWSS_LOG_WARN("%s: %s", opp.c_str(), key.c_str());
7104-
}
7101+
SWSS_LOG_NOTICE("%s: %s", opp.c_str(), key.c_str());
71057102
}
71067103

71077104
//for (const auto &op: currentView.asicGetOperations())

0 commit comments

Comments
 (0)