[
https://issues.apache.org/jira/browse/NIFI-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15028236#comment-15028236
]
ASF subversion and git services commented on NIFI-1216:
-------------------------------------------------------
Commit 9aa9c27dbe70d6450b8815a7ee945dc927e7e4c8 in nifi's branch
refs/heads/master from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=9aa9c27 ]
NIFI-1216: Check if log level is enabled immediately in the SimpleProcessLogger
before formatting log message
Signed-off-by: joewitt <[email protected]>
> NiFi framework spends resources formatting log messages for Processor Loggers
> even when log level disabled
> ----------------------------------------------------------------------------------------------------------
>
> Key: NIFI-1216
> URL: https://issues.apache.org/jira/browse/NIFI-1216
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Mark Payne
> Assignee: Mark Payne
> Fix For: 0.4.0
>
> Attachments:
> 0001-NIFI-1216-Check-if-log-level-is-enabled-immediately-.patch
>
>
> Currently when we call getLogger().info(...) the log message is formatted,
> even if the log level is set to WARN or ERROR. This is fairly expensive and
> can be avoided.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)