Skip to content
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

Merged
merged 5 commits into from
Jun 28, 2021
Merged

Conversation

tups
Copy link
Contributor

@tups tups commented Jun 24, 2021

Description:

I suggest adding the regex for Gandi's virtualhost servers, because the log format is different.
Thank you anyway for your work

Review

  • Functional review done
  • Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

Copy link
Member

@sgiehl sgiehl left a 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

import_logs.py Outdated Show resolved Hide resolved
Damien Tupinier added 2 commits June 25, 2021 07:25
…t API. The response was detected in byte. Adding a decoder depending on the response.
@tups tups requested a review from sgiehl June 25, 2021 05:43
import_logs.py Show resolved Hide resolved
import_logs.py Outdated Show resolved Hide resolved
@diosmosis
Copy link
Member

Thanks for the PR @tups and thanks for applying all the requested review feedback!

@diosmosis diosmosis merged commit b9f5e1e into matomo-org:4.x-dev Jun 28, 2021
@@ -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')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants