-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix/ub 1325 adda action name to the logs #219
Fix/ub 1325 adda action name to the logs #219
Conversation
…5_change_logger_not_to_show_pid_and_goroutine
Review status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @olgashtivelman and @shay-berman) utils/logs/go_logging_logger.go, line 86 at r3 (raw file):
whats happen if action name not given in the context? Comments from Reviewable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @olgashtivelman and @shay-berman)
utils/logs/go_logging_logger.go, line 86 at r3 (raw file):
Previously, shay-berman wrote…
whats happen if action name not given in the context?
I think we should succeed to work but without show the action name.
a struct will always have a default value to parameters it will just be empty. do you mean that you have a problem with it looking like : "id-" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @shay-berman)
utils/logs/go_logging_logger.go, line 86 at r3 (raw file):
Previously, olgashtivelman wrote…
a struct will always have a default value to parameters it will just be empty. do you mean that you have a problem with it looking like : "id-" ?
yes it may be strange
but also what if old ubiquity flex will work with the new ubiqutiy server.
we need to think if we have some issue in that use case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @olgashtivelman)
utils/logs/go_logging_logger.go, line 86 at r3 (raw file):
Previously, shay-berman wrote…
yes it may be strange
but also what if old ubiquity flex will work with the new ubiqutiy server.
we need to think if we have some issue in that use case.
@shay-berman OK but I don't understand what it is that you want me to change. do you want to check if the action name is not empty and if it is to set it to NA?
do we support old ubiquity-flex with new ubiquity server?
is anyone checking this?
there were other changes with the logging which assume that flex+ubiquity are in sync. also the requests are different so how can this be supported at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @shay-berman)
utils/logs/go_logging_logger.go, line 86 at r3 (raw file):
Previously, olgashtivelman wrote…
@shay-berman OK but I don't understand what it is that you want me to change. do you want to check if the action name is not empty and if it is to set it to NA?
do we support old ubiquity-flex with new ubiquity server?
is anyone checking this?
there were other changes with the logging which assume that flex+ubiquity are in sync. also the requests are different so how can this be supported at all?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 6 files at r3, 1 of 1 files at r4.
Reviewable status:complete! all files reviewed, all discussions resolved
this PR will add an action name to each log line. (for example all oprerations that are part of Delete will have the request-action name in the log.
like : fd5dd389-7acb-11e8-88cd-54ee75515403-Delete
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)