-
Notifications
You must be signed in to change notification settings - Fork 116
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 Gandi VirtualHost log format #316
Conversation
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.
Hi @tups
Thanks for the contribution. The current implementation seems not to work due to a typo in the format name.
Also it would be awesome if you could add a test for the new format with a small example log. See other tests in https://github.com/matomo-org/matomo-log-analytics/blob/4.x-dev/tests/test_main.py
…t API. The response was detected in byte. Adding a decoder depending on the response.
Thanks for the PR @tups and thanks for applying all the requested review feedback! |
@@ -1527,9 +1538,10 @@ def _call(self, path, args, headers=None, url=None, data=None): | |||
self.RedirectHandlerWithLogging(), | |||
urllib.request.HTTPSHandler(**https_handler_args)) | |||
response = opener.open(request, timeout = timeout) | |||
encoding = response.info().get_content_charset('utf-8') |
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.
This line and the result.decode below caused the issue described here:
Description:
I suggest adding the regex for Gandi's virtualhost servers, because the log format is different.
Thank you anyway for your work
Review