Details
-
Story
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Usergrid 33
Description
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);
Also:
1) Standardize on slf4j version 1.7.2, which includes variable argument support.
2) Remove extraneous object creation (for when variable argument support didn't exist).
3) Change debug statements for element creation/deletion, connections, etc. to trace.
Attachments
Issue Links
- relates to
-
USERGRID-1043 Change any and all error messages akin to 'This should never happen' - because it happens
- Closed