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:
		@@ -388,8 +388,8 @@ class RefControl {
 | 
				
			|||||||
  private boolean canPerform(String permissionName, boolean isChangeOwner, boolean withForce) {
 | 
					  private boolean canPerform(String permissionName, boolean isChangeOwner, boolean withForce) {
 | 
				
			||||||
    if (isBlocked(permissionName, isChangeOwner, withForce)) {
 | 
					    if (isBlocked(permissionName, isChangeOwner, withForce)) {
 | 
				
			||||||
      logger.atFine().log(
 | 
					      logger.atFine().log(
 | 
				
			||||||
          "'%s' cannot perform '%s' with force=%s on project '%s' for ref '%s' (caller: %s)"
 | 
					          "'%s' cannot perform '%s' with force=%s on project '%s' for ref '%s'"
 | 
				
			||||||
              + " because this permission is blocked",
 | 
					              + " because this permission is blocked (caller: %s)",
 | 
				
			||||||
          getUser().getLoggableName(),
 | 
					          getUser().getLoggableName(),
 | 
				
			||||||
          permissionName,
 | 
					          permissionName,
 | 
				
			||||||
          withForce,
 | 
					          withForce,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user