[
https://issues.apache.org/jira/browse/NIFI-13266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854228#comment-17854228
]
ASF subversion and git services commented on NIFI-13266:
--------------------------------------------------------
Commit 7deac6afac19c95f16bd8a5af76ff2aa52ba49d2 in nifi's branch
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=7deac6afac ]
NIFI-13266 Removed String concatenation in logging messages (#8940)
Signed-off-by: David Handermann <[email protected]>
> Remove any use of string concatenation in logging statements
> ------------------------------------------------------------
>
> Key: NIFI-13266
> URL: https://issues.apache.org/jira/browse/NIFI-13266
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> There are performance gains to be had when using string interpolation instead
> of string concatenation hence any use of concatenation should be replaced
> with parameters. See [Are concatenating strings in a Java logger is best or
> bad
> practice?|https://www.linkedin.com/pulse/concatenating-strings-java-logger-best-bad-practice-jamsheer-t]
> for more details.
> The only concatenation which should be used is when a line exceeds the 200
> length limit set in Checkstyle.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)