Skip to content

Conversation

@royroyee
Copy link
Contributor

@royroyee royroyee commented Dec 9, 2024

This PR addresses multiple critical issues related to logging, session handling, and queue management:

  1. Logging Fix: Prevented recursive log forwarding to the remote server by introducing file-based filtering using logRecordFileHandlers. Unregistered files are ignored, and logs below the specified severity level are skipped.

  2. Session Fix: Corrected CheckSession to retry on invalid responses instead of returning false, improving session request reliability.

  3. Queue Fix: Added error handling to prevent waking up the reporter goroutine when the queue is full, avoiding unnecessary processing and potential deadlocks.

@royroyee royroyee changed the title Fix prevent recursive log forwarding to the remote server Fix prevent log recursion, retry CheckSession, and skip reporter on full queue Dec 9, 2024
@royroyee royroyee merged commit cbe66bf into main Dec 9, 2024
2 checks passed
@royroyee royroyee deleted the recurive-log branch December 9, 2024 05:01
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