Skip to content

Conversation

ndtretyak
Copy link
Contributor

What was changed

Now, workflow.LoggingAdapter overrides isEnabledFor, which does not add additional stack frame during logging, instead of log.

Why?

To have correct line numbers in logs.

Checklist

  1. Closes [Bug] Wrong line number in workflow.logger #447

  2. How was this tested:
    Unit test

  3. Any docs updates needed?
    No

@ndtretyak ndtretyak requested a review from a team as a code owner January 10, 2024 15:43
@CLAassistant
Copy link

CLAassistant commented Jan 10, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Thanks! Will merge if/when CI passes.

@cretz cretz merged commit e3630ef into temporalio:main Jan 10, 2024
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.

[Bug] Wrong line number in workflow.logger

3 participants