You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Lyor Goldstein (Jira)" <ji...@apache.org> on 2020/08/19 06:28:00 UTC
[jira] [Commented] (SSHD-1060) Do not store logger level in fields
[ https://issues.apache.org/jira/browse/SSHD-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17180281#comment-17180281 ]
Lyor Goldstein commented on SSHD-1060:
--------------------------------------
I think we should make a distinction between storing in fields and storing in variables within a method scope. The former should be discouraged, but the latter should be allowed. In other words, I think it should be acceptable to "freeze" the level value during a method execution and take the risk that during that method's execution changes in the frozen level enable state will not be sensed . Ofcourse, this applies only to "short" methods - not ones that have long lived loops.
> Do not store logger level in fields
> -----------------------------------
>
> Key: SSHD-1060
> URL: https://issues.apache.org/jira/browse/SSHD-1060
> Project: MINA SSHD
> Issue Type: Improvement
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 2.6.0
>
>
> The log levels can be changed at runtime externally, so the {{isDebugEnabled()}} or {{isTraceEnabled()}} should not be stored in fields.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org