Skip to content

Parse logging - #1085

Open
dragotin wants to merge 5 commits into
mainfrom
parseLogging
Open

Parse logging#1085
dragotin wants to merge 5 commits into
mainfrom
parseLogging

Conversation

@dragotin

@dragotin dragotin commented Sep 7, 2026

Copy link
Copy Markdown
Member

Add a script that parses the log output of the client and extracts the http logs, output either in html or mitm proxy flow file

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

It includes a few user-visible spelling issues and a timestamp error-handling behavior that can silently produce misleading flow timings.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds admin-facing logging utilities to parse OpenCloud client log output and extract HTTP request/response data, emitting either an HTML report or a mitmproxy flow file for debugging.

Changes:

  • Added admin/logging/parse_http_logs.py to parse sync.httplogger log lines and generate .mitm or HTML output.
  • Added brief documentation in admin/logging/README.md describing the logging utilities folder.
File summaries
File Description
admin/logging/README.md Introduces a short description of the new admin logging utilities directory.
admin/logging/parse_http_logs.py Implements parsing of client HTTP logs and output generation to HTML or mitmproxy flow format.
Review details

Suppressed comments (1)

admin/logging/parse_http_logs.py:67

  • If parse_timestamp() returns None for a malformed timestamp, parse_log() should skip the line rather than proceeding with a None timestamp.
        timestamp = parse_timestamp(match.group('ts'))
        try:
  • Files reviewed: 2/2 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread admin/logging/parse_http_logs.py Outdated
Comment thread admin/logging/parse_http_logs.py Outdated
Comment thread admin/logging/README.md
Comment on lines +3 to +4
This folder contains helpers for admins to work wtih logging the
OpenCloud client creates if enabled in the UI of the client.
Comment thread admin/logging/parse_http_logs.py Outdated
dragotin and others added 3 commits September 8, 2026 17:48
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants