Do not log 'Object too large' as error with full stacktrace

If a user pushes an object which is larger than the configured
receive.maxObjectSizeLimit parameter, the push is rejected with an
'Object too large' error. In addition an error log entry with the full
stacktrace is written into the error log.

This is not really a server error, but just a user doing something that
is not allowed, and thus it should not be logged as error. For a Gerrit
administrator it might still be interesting how often the limit is hit.
This is why it makes sense to still log this on info level.

For the user pushing a too large object we now do not print the
'fatal: Unpack error, check server log' message anymore, but only the
'Object too large' error message.

Change-Id: I5b7228f9b2ce41614712fde4ecd85525de3901a7
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
1 file changed