Skip to content

Commit c6ad230

Browse files
committed
♻️ refactor: refactor codebase #2
1 parent 3b225a3 commit c6ad230

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Diff for: plugin/src/main/groovy/org/bot4j/slack/common/Slack4j.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ public WrapResponse<?> sendMessage() {
7878
Map<String, Object> request = this.messageBody();
7979
Map<String, String> headers = this.headers();
8080
if (this.connections.isDebugging()) {
81-
logger.debug("Slack4j, request_id: {} sending message on URL: {}", this.options.getRequestId(), url);
82-
logger.debug("Slack4j, request_id: {} sending request body: {}", this.options.getRequestId(), Json4j.toJson(request));
83-
logger.debug("Slack4j, request_id: {} sending request header: {}", this.options.getRequestId(), headers.toString());
81+
this.logger.info("Slack4j, request_id: {} sending message on URL: {}", this.options.getRequestId(), url);
82+
this.logger.info("Slack4j, request_id: {} sending request body: {}", this.options.getRequestId(), Json4j.toJson(request));
83+
this.logger.info("Slack4j, request_id: {} sending request header: {}", this.options.getRequestId(), headers.toString());
8484
}
8585
try {
8686
HttpResponse<JsonNode> caller = Unirest.post(url).headers(headers).body(request).asJson();

Diff for: plugin/src/main/groovy/org/bot4j/telegram/common/Telegram4j.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public WrapResponse<?> sendMessage() {
4141
Map<String, Object> request = this.messageBody();
4242
Map<String, String> headers = this.headers();
4343
if (this.connections.isDebugging()) {
44-
logger.debug("Telegram4j, request_id: {} sending message on URL: {}", this.options.getRequestId(), url);
45-
logger.debug("Telegram4j, request_id: {} sending request body: {}", this.options.getRequestId(), Json4j.toJson(request));
46-
logger.debug("Telegram4j, request_id: {} sending request header: {}", this.options.getRequestId(), headers.toString());
44+
this.logger.info("Telegram4j, request_id: {} sending message on URL: {}", this.options.getRequestId(), url);
45+
this.logger.info("Telegram4j, request_id: {} sending request body: {}", this.options.getRequestId(), Json4j.toJson(request));
46+
this.logger.info("Telegram4j, request_id: {} sending request header: {}", this.options.getRequestId(), headers.toString());
4747
}
4848
try {
4949
HttpResponse<JsonNode> caller = Unirest.post(url).headers(headers).body(request).asJson();

Diff for: plugin/src/main/groovy/org/bot4j/viber/common/Viber4j.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ public WrapResponse<?> sendMessage() {
131131
Map<String, Object> request = this.messageBody();
132132
Map<String, String> headers = this.headers();
133133
if (this.connections.isDebugging()) {
134-
logger.debug("Viber4j, request_id: {} sending message on URL: {}", this.options.getRequestId(), url);
135-
logger.debug("Viber4j, request_id: {} sending request body: {}", this.options.getRequestId(), Json4j.toJson(request));
136-
logger.debug("Viber4j, request_id: {} sending request header: {}", this.options.getRequestId(), headers.toString());
134+
this.logger.info("Viber4j, request_id: {} sending message on URL: {}", this.options.getRequestId(), url);
135+
this.logger.info("Viber4j, request_id: {} sending request body: {}", this.options.getRequestId(), Json4j.toJson(request));
136+
this.logger.info("Viber4j, request_id: {} sending request header: {}", this.options.getRequestId(), headers.toString());
137137
}
138138
try {
139139
HttpResponse<JsonNode> caller = Unirest.post(url).headers(headers).body(request).asJson();

0 commit comments

Comments
 (0)