You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Mike Dunker (JIRA)" <ji...@apache.org> on 2016/01/29 20:33:39 UTC

[jira] [Assigned] (USERGRID-1243) Replace logging string concatenation with formatting

     [ https://issues.apache.org/jira/browse/USERGRID-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Dunker reassigned USERGRID-1243:
-------------------------------------

    Assignee: Mike Dunker

> Replace logging string concatenation with formatting
> ----------------------------------------------------
>
>                 Key: USERGRID-1243
>                 URL: https://issues.apache.org/jira/browse/USERGRID-1243
>             Project: Usergrid
>          Issue Type: Story
>            Reporter: Mike Dunker
>            Assignee: Mike Dunker
>
> Concatenating strings when logging creates temporary strings that can have a negative effect on GC. Instead, log4j's string formatting functionality should be used.
> Example:
> Replace
> logger.info("Invalid property value. name = " + name + ", value = " + value);
> with
> logger.info("Invalid property value. name = {}, value = {}", name, value);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)