Skip to content

Replace printStackTrace with structured logging#5

Open
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-6EQPh5YU
Open

Replace printStackTrace with structured logging#5
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-6EQPh5YU

Conversation

@victor-nb
Copy link
Copy Markdown

Summary

This PR fixes 1 security vulnerability identified by BoostSecurity.


Replace printStackTrace with structured logging in src/scala/com/twitter/recos/hose/common/RecosEdgeProcessor.scala (Line: 36)

Risk: Exception.printStackTrace() printed internal stack traces to stderr, exposing implementation details (paths, class/method names, line numbers) and potentially sensitive data.

Fix: Replaced printStackTrace() with SLF4J structured error logging, including Kafka topic/partition/offset context while routing the stack trace through the configured logger instead of stdout/stderr.


Generated by BoostSecurity Advisor

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.

1 participant