Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add iologger for debugging purposes#15

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
juruen merged 1 commit intomainfromjuruen/iologging
Mar 18, 2025
Merged

Conversation

@juruen
Copy link
Collaborator

@juruenjuruen commentedMar 17, 2025
edited
Loading

Context

This PR introduces anIOLogger struct that logs allstdin andstdout interactions between the client and the server.

This feature is particularly useful for debugging, as it provides visibility into the exact input and output exchanged between the client and the server.

By default, logging is disabled but can be enabled by setting theenable-command-logging flag totrue. I considered enabling it only when the log level is set todebug, but decided that having a separate toggle would be preferable due to potential privacy concerns.

CopilotAI review requested due to automatic review settingsMarch 17, 2025 12:38
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A PR to add an IOLogger for logging stdin and stdout between the client and server for debugging purposes.

  • Introduces an IOLogger struct with Read and Write methods that log data.
  • Adds tests in pkg/log/io_test.go to verify logged IO behavior.
  • Updates the server startup in cmd/server/main.go to conditionally wrap standard IO with the IOLogger based on a new command flag.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

FileDescription
pkg/log/io.goIntroduces the IOLogger implementation and its logging behavior on Read and Write.
pkg/log/io_test.goProvides tests to verify logged input and output functionality.
cmd/server/main.goModifies server initialization to retrieve and pass a command logging flag and binds a new flag.
Files not reviewed (1)
  • go.mod: Language not supported

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused.Learn more

Copy link
Collaborator

@SamMorrowDrumsSamMorrowDrums left a comment

Choose a reason for hiding this comment

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

I can see how this would save a lot of pain when iterating on things.

@juruenjuruen merged commite0bffe9 intomainMar 18, 2025
3 checks passed
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
@gelu22
Copy link

Progress Update - Phase 2 Completed ✅

🎯Major Achievement: Endpoint Coverage Improvement

Successfully resolved missing API endpoints causing 404 errors:

Created new routes:

  • /api/export - PDF/CSV export endpoints
  • /api/tenant - Tenant management endpoints
  • /api/docker - Container information endpoints
  • /api/database - Database health and table info endpoints

📊Test Results Analysis

Before (Phase 1): ~21% success rate (majority schema errors)
After (Phase 2): Significant improvement - 404 errors largely resolved

Current comprehensive test status:

  • ✅ Database schema issues:RESOLVED
  • ✅ Missing API endpoints:RESOLVED
  • 🔄 Authentication middleware errors:IN PROGRESS
  • 🔄 JWT validation issues:IN PROGRESS

🔍Current Focus: Authentication & Authorization

Primary issues now:

  • 500 Internal Server Error responses from auth middleware
  • JWT token validation failures
  • Permission boundary violations
  • Session management inconsistencies

Pattern identified: Tests failing on authentication flow rather than missing endpoints - this is progress!

🚀Next Steps - Phase 3: Authentication System

Immediate priorities:

  1. Debug authentication middleware - investigate 500 errors in auth flow
  2. Fix JWT validation - resolve token processing issues
  3. Improve RBAC implementation - correct role-based access control
  4. Session management - fix session lifecycle and timeout handling

Target: Achieve 80%+ comprehensive test success rate

💡Key Insights

  • Systematic approach working: Phase 1 (schema) → Phase 2 (endpoints) → Phase 3 (auth)
  • Test failures now indicate functional system with auth issues vs broken infrastructure
  • Moving from "system broken" to "system needs configuration" - major progress

Status: Phase 2 Complete ✅ | Phase 3 Authentication Debugging In Progress 🔄

DaleSeo pushed a commit to DaleSeo/github-mcp-server that referenced this pull requestOct 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@SamMorrowDrumsSamMorrowDrumsSamMorrowDrums approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@juruen@gelu22@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp