MB-10908 Hibernate error_logger.

Change-Id: I6499660fd053d5e5d84a656622f90b746e4e79eb
Reviewed-on: http://review.couchbase.org/36115
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10908 Prevent error_logger from logging huge terms.

Change-Id: I1c376d3da74fd3ac526fe3c78bb38da7ea0aa01b
Reviewed-on: http://review.couchbase.org/36116
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>