ReceiveCommits: Log RuntimeException on severe level

Having this logged always is useful to investigate exceptions that are
counted by the reject count metric. If you see errors for an exception
in the reject count metric, and there is no formatting for this
exception yet, you would like to lookup and inspect the stacktrace and
this log allows this.

Bug: Google b/348209481
Change-Id: I14ae3f0567444335336749c13534d5373191bcd0
Signed-off-by: Edwin Kempin <ekempin@google.com>
Release-Notes: skip
diff --git a/java/com/google/gerrit/server/git/receive/ReceiveCommits.java b/java/com/google/gerrit/server/git/receive/ReceiveCommits.java
index 9f7b763..713e5a2 100644
--- a/java/com/google/gerrit/server/git/receive/ReceiveCommits.java
+++ b/java/com/google/gerrit/server/git/receive/ReceiveCommits.java
@@ -762,7 +762,7 @@
       logger.atFine().log("Processing commands done.");
     } catch (RuntimeException e) {
       String formattedCause = getFormattedCause(e).orElse(e.getClass().getSimpleName());
-      logger.atFine().withCause(e).log("ReceiveCommits failed due to %s", formattedCause);
+      logger.atSevere().withCause(e).log("ReceiveCommits failed due to %s", formattedCause);
       metrics.rejectCount.increment("n/a", formattedCause, SC_INTERNAL_SERVER_ERROR);
       throw e;
     }