diff --git a/orchagent/main.cpp b/orchagent/main.cpp index 0e83f2b41c15..881c6ad42514 100644 --- a/orchagent/main.cpp +++ b/orchagent/main.cpp @@ -139,10 +139,13 @@ int main(int argc, char **argv) int opt; sai_status_t status; - while ((opt = getopt(argc, argv, "m:h")) != -1) + while ((opt = getopt(argc, argv, "m:hd")) != -1) { switch (opt) { + case 'd': + swss::Logger::getInstance().setMinPrio(swss::Logger::SWSS_DEBUG); + break; case 'm': gMacAddress = MacAddress(optarg); break;