-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
add time in output lines #225
add time in output lines #225
Conversation
Output with the new changes looks something like this. @pouriyajamshidi could you please review? I also have a doubt, why does CodeFactor say I have issues in tcping.go when I did not make changes in that file? Thanks in advance :)
|
Hi @SYSHIL, I had a very quick look at your PR and the first thing that jumped at me is that the default behavior has changed. This is not the intention. We try to stay relatively close to what Linux's ping utility does and as the issue was describing, timestamps are only activated using the We also have other printers than the Line 230 in 2ae984d
Let's address the rest of the open topics after that. |
Understood, Thank you @pouriyajamshidi I'll look into this further |
Hey @pouriyajamshidi I added a boolean field in the plane printer to ensure the default behaviour doesn't get affected and the timestamp is only added to our logs when a -D flag is passed.
|
Hi @SYSHIL, Sorry, I had to be more concise.
When making changes to the way we display information, we need to ensure all of these printers outputting the same data to prevent any unexpected behavior for our users. Now, what needs to be done is to implement the same for Hopefully, you still have patience for this. 😄 |
Hey @pouriyajamshidi, Yeah the reason I did not touch our json printer and database printer was because they already seem to be printing our current timestamp. here and here so this -D flag would only extend the capability of the plane printer. Sorry if I'm misunderstanding this and thank you for bearing with me 🙏 |
ah, sorry I will have a closer look tomorrow. |
Hey @pouriyajamshidi could u please check now, Thank you :) |
Sure. Will get to this in a day or two max. |
Hey @SYSHIL, I can see the reviews I left for not needing to timestamp certain messages are marked as solved but they are still using the I do not see any benefit in doing that. Please just revert them to what they were to keep the code simple. |
Ahh sorry @pouriyajamshidi, somehow I missed that. Removed it now |
Hey @SYSHIL Could you please review your PR once while you are in a good head-space? I think you have missed a couple of changes I have requested and every time I see "done or fixed", I take a look at the code and it confuses me more. 😄 Thanks |
Sure @pouriyajamshidi I will review the entire PR and ping you 🙏 |
Alright time in output lines only shows up upon
They do use |
This is what I meant. I don't see any point in using |
Okay @pouriyajamshidi my initial idea was to just have one way of printing things through the planPrinter and that's why I added printOptions in case there's a need to extend it but I also agree with keeping the code simple, I've reverted my changes in functions where printoptions isn't really helping us |
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.
Thanks for the contribution @SYSHIL
Upon making the final changes, this can get merged in
I've made the appropriate changes @pouriyajamshidi, Sorry about the initial confusion with respect to requirements....Would love to collaborate soon if there any new issues I could pick up :) |
Thanks for pushing this through to the end. Perhaps solving the CI error next would be a good move? Nonetheless, appreciate the help |
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.
LGTM
closes #215
Important
Please provide the requested parameters below to help us review your pull request.
Pull requests without a body or explanation will be rejected.
Describe your changes
Issue ticket number and link
github.com//issues/215
Checklist before requesting a review
make check
and there are no failures.Type of change
Please delete options that are not relevant.