RefControl: Fix log statement

The caller information should be included at the end and not appear in
the middle of the log statement.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I2d0558817ad351e395bd591df6cc76be9b81fb26
This commit is contained in:
Edwin Kempin
2020-02-17 10:42:38 +01:00
parent b3de0fbe83
commit c93b8fc249

View File

@@ -388,8 +388,8 @@ class RefControl {
private boolean canPerform(String permissionName, boolean isChangeOwner, boolean withForce) {
if (isBlocked(permissionName, isChangeOwner, withForce)) {
logger.atFine().log(
"'%s' cannot perform '%s' with force=%s on project '%s' for ref '%s' (caller: %s)"
+ " because this permission is blocked",
"'%s' cannot perform '%s' with force=%s on project '%s' for ref '%s'"
+ " because this permission is blocked (caller: %s)",
getUser().getLoggableName(),
permissionName,
withForce,