[
https://issues.apache.org/jira/browse/OAK-9010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085590#comment-17085590
]
Marcel Reutegger commented on OAK-9010:
---------------------------------------
Looks interesting. The following usage is confusing to me:
{noformat}
private static final boolean CHECKCONNECTIONONCLOSE = SystemPropertyUtils
.create("org.apache.jackrabbit.oak.plugins.document.rdb.RDBConnectionHandler.CHECKCONNECTIONONCLOSE",
Boolean.FALSE)
.loggingTo(LOG)
.logSetMessageAs(
(name, value) -> LOG.info("Check connection on close
enabled (system property {} set to {})", name, value))
.get();
{noformat}
Logging is set to LOG with {{.loggingTo(LOG)}}, but then {{.logSetMessageAs()}}
will again use LOG explicitly. Is there a way the previously passed LOG is used?
> Standardize handling of system properties
> -----------------------------------------
>
> Key: OAK-9010
> URL: https://issues.apache.org/jira/browse/OAK-9010
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: rdbmk
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Priority: Major
> Attachments: OAK-9010-2.diff, OAK-9010.diff
>
>
> I'd like to somewhat standardize getting system properties, with respect to:
> - default handling
> - parsing
> - logging
--
This message was sent by Atlassian Jira
(v8.3.4#803005)