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

Feature/more debug logging to LogMatcher #1110

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

zhenyu-ms
Copy link
Contributor

@zhenyu-ms zhenyu-ms commented Jul 12, 2024

Bug / Requirement Description

to add debug logging in logmatcher public apis

Solution description

having method _match as internal impl, debug logging info attached to self, set to None to allow info logging

Checklist:

  • Test
  • Example (both test_plan.py and .rst)
  • Documentation (API)
  • News fragment present for release notes
  • MS info leakage check
  • For new driver: driver index page
  • For new assertion: ui/pdf/std renderers, documentation
  • For new cmdline arg: documentation

@zhenyu-ms zhenyu-ms requested a review from a team as a code owner July 12, 2024 05:08
@zhenyu-ms zhenyu-ms force-pushed the logmatcher-pos branch 3 times, most recently from 381fd11 to d4a3736 Compare July 12, 2024 06:42
self._debug_info_e = (
str(self.position),
time.time(),
_truncate_line(line),
Copy link
Contributor

@Pyifan Pyifan Jul 16, 2024

Choose a reason for hiding this comment

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

if we are reaching eof but not finding the pattern, more useful info would be the last line seen, rather than eof

Pyifan
Pyifan previously approved these changes Jul 16, 2024
@zhenyu-ms zhenyu-ms merged commit e93194e into morganstanley:main Jul 17, 2024
15 checks passed
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.

3 participants