Skip to content
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 #4

Closed
wants to merge 1 commit into from

Conversation

DavidZagury
Copy link
Owner

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:
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

orchagent/orch.cpp Show resolved Hide resolved
@DavidZagury DavidZagury closed this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants