...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
List<Tuple> tupleList List<User> userList = journalRecordsreply.streamresult().map(this::prepareInsertQueryParameters).collect(Collectors.toList()getResults(); String query = format(INSERT_SQL, convertToPsqlStandard(tenantId), JOURNAL_RECORDS_TABLE); LOGGER.trace("JournalRecordDaoImpl::saveBatch query = {}; tuples = userList.size() < 3 ? logger.debug("Existing users: {}", userList) : logger.debug("Number of existing users: {}", query, tupleListuserList.size()); |
Big objects
Big objects should not be logged "as-is". If there's a need to log such an object, consider creating local wrapper, redefining toString() method within it, so it only contains most useful data from the object (id, referenced id's, maybe state)
...