Skip to content

Commit 0eac771

Browse files
committed
fix: update some logs
Signed-off-by: Andrea Lamparelli <[email protected]>
1 parent 27057d0 commit 0eac771

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/io/perf/tools/bot/action/impl/BaseAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public boolean internal() {
6363
@Override
6464
public void execute(ActionContext<?> ctx) throws IOException {
6565
if (ctx != null && !ActionContext.Status.isFailure(ctx.getStatus())) {
66-
Log.trace("[" + PayloadHelper.getRepository(ctx.getPayload()).getFullName() + "] [" + ctx.getPayload().getSender()
66+
Log.debug("[" + PayloadHelper.getRepository(ctx.getPayload()).getFullName() + "] [" + ctx.getPayload().getSender()
6767
.getLogin() + "] Executing action: " + getName());
6868
proceed(ctx);
6969
} else {

src/main/java/io/perf/tools/bot/handler/event/AmqpEventHandler.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ public class AmqpEventHandler {
4242
// TODO: Replace hard-coded topic
4343
@Incoming("amqp-channel")
4444
public void onComment(String payload) throws IOException {
45-
Log.debug("Received AMQP message:\n" + payload);
46-
4745
GitHub github = gitHubService.getInstallationClient(installationId);
4846
GHEventPayload.IssueComment issueComment = github.parseEventPayload(new StringReader(payload),
4947
GHEventPayload.IssueComment.class);

src/main/java/io/perf/tools/bot/service/PerfBotService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ public class PerfBotService {
4747
* @param issueComment the GitHub issue comment event payload
4848
*/
4949
public void onGithubComment(GHEventPayload.IssueComment issueComment) {
50+
Log.trace("Received issue command: " + issueComment.getComment().getHtmlUrl());
5051
Action action = actionResolver.getActionFromComment(issueComment.getComment().getBody());
5152
ProjectConfig config = configService.getConfig(PayloadHelper.getRepository(issueComment).getFullName());
5253

5354
// skip any issue comment action that is not "created", e.g., ignore comment deletion
5455
if (action != null && ISSUE_COMMENT_CREATE_ACTION.equalsIgnoreCase(issueComment.getAction())) {
56+
Log.trace("Received issue command: " + issueComment.getComment().getBody());
5557
ActionContext<GHEventPayload.IssueComment> ctx = new ActionContext<>(issueComment, config);
5658
executeCommand(action, ctx);
5759
}

0 commit comments

Comments
 (0)