Skip to content

Conversation

@asl3
Copy link
Contributor

@asl3 asl3 commented Jun 13, 2024

What changes were proposed in this pull request?

This PR migrates Scala logging to comply with the scala style changes in #46979

Why are the changes needed?

This makes development and PR review of the structured logging migration easier.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Tested by ensuring dev/scalastyle checks pass

Was this patch authored or co-authored using generative AI tooling?

No

@asl3 asl3 changed the title [DRAFT] Scala Structured Logging Migration [SPARK-48623][INFRA] Structured Logging Framework Scala Style Migration Jun 13, 2024
logError(s"Failed to delete temporary checksum file " +
s"at ${checksumTmp.getAbsolutePath}")
logError(log"Failed to delete temporary checksum file at " +
log"${MDC(LogKeys.FILE_ABSOLUTE_PATH, checksumTmp.getAbsolutePath)}")
Copy link
Member

Choose a reason for hiding this comment

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

let's just use PATH

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see LogKey.scala has this key which is used in other files: case object FILE_ABSOLUTE_PATH extends LogKey

should we migrate these other occurrences to PATH ? @gengliangwang

@github-actions github-actions bot removed the BUILD label Jun 14, 2024
@asl3 asl3 requested a review from gengliangwang June 14, 2024 14:45
@gengliangwang
Copy link
Member

Thanks, merging to master

@gengliangwang gengliangwang changed the title [SPARK-48623][INFRA] Structured Logging Framework Scala Style Migration [SPARK-48623][CORE] Structured Logging Migrations Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants