-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve log information when exception is caught in Orch2 class #3401
Conversation
Bypassing coverage since its an exception path |
…c-net#3401) What I did Add the information regarding which class the exception is originated from when Orch2 catches an exception. Why I did it An Exception was thrown, and the error log given was: ERR swss#orchagent: :- doTask: Logic error: map::at This gives almost no information on where the exception happened.
…c-net#3401) What I did Add the information regarding which class the exception is originated from when Orch2 catches an exception. Why I did it An Exception was thrown, and the error log given was: ERR swss#orchagent: :- doTask: Logic error: map::at This gives almost no information on where the exception happened.
…c-net#3401) What I did Add the information regarding which class the exception is originated from when Orch2 catches an exception. Why I did it An Exception was thrown, and the error log given was: ERR swss#orchagent: :- doTask: Logic error: map::at This gives almost no information on where the exception happened.
…c-net#3401) What I did Add the information regarding which class the exception is originated from when Orch2 catches an exception. Why I did it An Exception was thrown, and the error log given was: ERR swss#orchagent: :- doTask: Logic error: map::at This gives almost no information on where the exception happened.
@DavidZagury, @prsunny I added the cherry-pick label for 202411 branch. It will not be cherry-picked to 202405 as it's considered as an enhancement. |
@bingwang-ms there is no need to cherry pick to 202411 as this is already part of the branch. This was merged before the branch out. |
…c-net#3401) What I did Add the information regarding which class the exception is originated from when Orch2 catches an exception. Why I did it An Exception was thrown, and the error log given was: ERR swss#orchagent: :- doTask: Logic error: map::at This gives almost no information on where the exception happened.
Cherry-pick PR to 202405: #3441 |
What I did Add the information regarding which class the exception is originated from when Orch2 catches an exception. Why I did it An Exception was thrown, and the error log given was: ERR swss#orchagent: :- doTask: Logic error: map::at This gives almost no information on where the exception happened.
What I did
Add the information regarding which class the exception is originated from when Orch2 catches an exception.
Why I did it
An Exception was thrown, and the error log given was:
ERR swss#orchagent: :- doTask: Logic error: map::at
This gives almost no information on where the exception happened.
How I verified it
Compiled SWSS which I forced an exception to be thrown from addOperation in VxlanTunnelOrch.
The log resulted is:
ERR swss#orchagent: :- doTask: Logic error in 15VxlanTunnelOrch: map::at
Which focus you to a specific class.
Bigger improvement would need a larger refactor.
Details if related