-
Notifications
You must be signed in to change notification settings - Fork 36
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
Remove debug.Stack() from logger #1053
Merged
denis-tingaikin
merged 1 commit into
networkservicemesh:main
from
glazychev-art:issue-2386
Aug 10, 2021
Merged
Remove debug.Stack() from logger #1053
denis-tingaikin
merged 1 commit into
networkservicemesh:main
from
glazychev-art:issue-2386
Aug 10, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
glazychev-art
force-pushed
the
issue-2386
branch
from
August 5, 2021 08:27
0fde629
to
a3ea6cf
Compare
There are several cases if error happen:
|
glazychev-art
changed the title
Correct work with stack tracer
Remove debug.Stack() from logger
Aug 5, 2021
@edwarnicke |
denis-tingaikin
approved these changes
Aug 10, 2021
I think we can try this and if it will make logs not informative then we can revert this patch and consider another solution. |
nsmbot
pushed a commit
to networkservicemesh/cmd-nse-icmp-responder
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-nsmgr
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-nsmgr-proxy
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-registry-memory
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-registry-proxy-dns
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/cmd-nse-vfio
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/sdk-kernel
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/sdk-k8s
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
This was referenced Aug 10, 2021
nsmbot
pushed a commit
to networkservicemesh/cmd-nsc-init
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot
pushed a commit
to networkservicemesh/sdk-k8s
that referenced
this pull request
Aug 10, 2021
…k@main PR link: networkservicemesh/sdk#1053 Commit: eb7b86c Author: Artem Glazychev Date: 2021-08-10 18:17:26 +0700 Message: - Correct work with stack tracer (#1053) Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Artem Glazychev artem.glazychev@xored.com
Description
It seems we don't actually need
debug.Stack()
, becauseerrors.New()
already has a stack:Even if we create
error
without usingerrors
package,trace
chain element will wrap it to the struct with stack trace (errors.Wrapf(...)
).We do not need to call
debug.Stack()
for everyErrorf()
call, because we already have this information.And we need to set
"%+v"
if we want to print error with stack trace - linkIssue link
networkservicemesh/deployments-k8s#2368
How Has This Been Tested?
Types of changes