commit | 7444017cf3ac9469650696a0d602219865a7bfac | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Thu Apr 04 10:45:33 2019 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Thu Apr 04 10:45:33 2019 +0900 |
tree | 280ac905f2866e6854078ced7e9afe19ec54f4a2 | |
parent | 8b6213d32850dc67789a14beaeb35b5215803f6c [diff] |
LfsLocksAction: Use Logger's built-in string formatting Change-Id: I3203070920416fd824b13042460d9996b7885b7d
diff --git a/src/main/java/com/googlesource/gerrit/plugins/lfs/locks/LfsLocksAction.java b/src/main/java/com/googlesource/gerrit/plugins/lfs/locks/LfsLocksAction.java index 8a13514..4fa8680 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/lfs/locks/LfsLocksAction.java +++ b/src/main/java/com/googlesource/gerrit/plugins/lfs/locks/LfsLocksAction.java
@@ -108,9 +108,7 @@ Strings.isNullOrEmpty(control.getUser().getUserName()) ? "anonymous" : control.getUser().getUserName(); - log.debug( - String.format( - "operation %s unauthorized for user %s on project %s", op, userName, project)); + log.debug("operation {} unauthorized for user {} on project {}", op, userName, project); throw new LfsUnauthorized(op, project); } }