-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Add logging handler for sending records to syslog #675
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
Conversation
|
Hello @ZQyou, Thank you for updating! Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide Comment last updated on March 01, 2019 at 12:08 Hours UTC |
|
Can I test this patch? |
|
@jenkins-cscs retry all |
Codecov Report
@@ Coverage Diff @@
## master #675 +/- ##
==========================================
- Coverage 91.89% 91.83% -0.06%
==========================================
Files 77 77
Lines 9452 9494 +42
==========================================
+ Hits 8686 8719 +33
- Misses 766 775 +9
Continue to review full report at Codecov.
|
|
@ZQyou Hmm, looks like that sth has gone wrong with your branch. It seems that you have reapplied several commits already in the master. Checking the history of your branches, it seems that you have rebased over the main master and then merged again with your local master before applying your new commit. I'll see how I can fix that. |
|
@vkarak Apology for any inconvenience caused. Here is what I did: merge upstream master into my local master and then rebase local branch. Somehow it was asked to pull my remote branch before I push local branch then I did it. If the issue is complicated, can I just cancel this request and submit another one? |
|
Yes, as soon as you rebase a branch that you have already pushed, you need to do a forced update to the remote branch, because you have essentially reapplied all your commits, so the two branches have diverged according to Git. That's why it was asking you for a pull first. You can fix it by cherry-picking your commits in a clean local branch and force pushing to your remote branch. # in your local copy
git checkout -b clean_branch
git cherry-pick COMMIT1 COMMIT2 ...
git push your_remote +clean_branch:feature/syslog_handlerThe |
* Support syslog handler in Logging and Performance Logging
* Support facility and socket type attributes * The attribute address is now required
5e0f7fb to
f98a8a9
Compare
|
@ZQyou I fixed your PR and I forced updated into your remote branch. Can you check that I haven't missed any of your changes? In order now to update your local branch, you should not just pull, because we will end up in the same situation as before (Git will merge the remote with your local branch). You just need to do a hard reset of your local branch to the status of the remote: # In your local repo
git checkout feature/syslog_handler
git reset --hard your_remote/feature/syslog_handlerThen you should be able to see only the two useful commits. |
|
@vkarak Thank you. There is no change missing. I have tested this branch on our Linux server and run a local unittest to test address='/var/run/syslog' on Mac. Both work fine. |
* Chagne the attribute `socket` to `socktype` * Make the attribute `facility` string-based
|
@ZQyou Thanks for your PR. Looks good. I will merge it as soon as the CI passes. |
|
@jenkins-cscs retry all |
Also - Add Syslog handler unit test
|
@ZQyou I've also update the documentation and I have added a unit test that tests the actual logging through |
Closes #671
Closes #699