-
Notifications
You must be signed in to change notification settings - Fork 3.6k
additional debug logging for fsm #20954
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
additional debug logging for fsm #20954
Conversation
Can one of the repo owners verify this patch? |
OK TO TEST |
Test PASSed. |
@@ -784,7 +784,7 @@ trait LoggingFSM[S, D] extends FSM[S, D] { this: Actor ⇒ | |||
case a: ActorRef ⇒ a.toString | |||
case _ ⇒ "unknown" | |||
} | |||
log.debug("processing " + event + " from " + srcstr) | |||
log.debug("processing " + event + " from " + srcstr + " in state " + stateName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this to debug("processing {} from {} in state {}", event, srcstr, stateName)
so that we do not construct this string even when logging is not enabled. Same below.
LGTM but please boyscout-remove the string-building when debugging not enabled, thanks! |
LGTM, thanks a lot - good improvement! |
Test PASSed. |
Thanks @abesanderson ! |
#20952