Skip to content

Commit

Permalink
orchagent: Adding command line option to enable debug logging (sonic-…
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored and Shuotian Cheng committed Nov 7, 2016
1 parent afaa836 commit 3b9fe12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchagent/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b9fe12

Please sign in to comment.