AbstractGetCodeOwnersForPath: Log collected debugs on fine level This way they will show up in the logs if tracing is enabled. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I291357ce34b42c91f959c7200c577087f26a96a7
diff --git a/java/com/google/gerrit/plugins/codeowners/restapi/AbstractGetCodeOwnersForPath.java b/java/com/google/gerrit/plugins/codeowners/restapi/AbstractGetCodeOwnersForPath.java index 7a60f99..0fc90f9 100644 --- a/java/com/google/gerrit/plugins/codeowners/restapi/AbstractGetCodeOwnersForPath.java +++ b/java/com/google/gerrit/plugins/codeowners/restapi/AbstractGetCodeOwnersForPath.java
@@ -323,6 +323,9 @@ codeOwnerJsonFactory.create(getFillOptions()).format(sortedAndLimitedCodeOwners); codeOwnersInfo.ownedByAllUsers = ownedByAllUsers.get() ? true : null; codeOwnersInfo.debugLogs = debug ? debugLogs : null; + + logger.atFine().log("debug logs: %s", debugLogs); + return Response.ok(codeOwnersInfo); }