Skip to content

Commit

Permalink
Fix checkstlyle failures
Browse files Browse the repository at this point in the history
  • Loading branch information
AzeemMuzammil committed May 21, 2024
1 parent 59ca393 commit cf289ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ private static String formatAccessLogAttribute(HttpAccessLogMessage httpAccessLo
HttpAccessLogFormat format, String attribute) {
return switch (attribute) {
case "ip" -> httpAccessLogMessage.getIp();
case "date_time" -> String.format("[%1$td/%1$tb/%1$tY:%1$tT.%1$tL %1$tz]", httpAccessLogMessage.getDateTime());
case "date_time" ->
String.format("[%1$td/%1$tb/%1$tY:%1$tT.%1$tL %1$tz]", httpAccessLogMessage.getDateTime());
case "request_method" -> httpAccessLogMessage.getRequestMethod();
case "request_uri" -> httpAccessLogMessage.getRequestUri();
case "scheme" -> httpAccessLogMessage.getScheme();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
import io.netty.handler.codec.http2.Http2Exception;
import io.netty.handler.codec.http2.Http2Headers;
import io.netty.handler.codec.http2.HttpConversionUtil;
import io.netty.util.internal.logging.InternalLogLevel;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -60,7 +57,6 @@
import java.util.Calendar;
import java.util.List;

import static io.ballerina.stdlib.http.transport.contract.Constants.ACCESS_LOG;
import static io.ballerina.stdlib.http.transport.contract.Constants.HTTP_X_FORWARDED_FOR;
import static io.ballerina.stdlib.http.transport.contract.Constants.IDLE_TIMEOUT_TRIGGERED_WHILE_WRITING_OUTBOUND_RESPONSE_BODY;
import static io.ballerina.stdlib.http.transport.contract.Constants.REMOTE_CLIENT_CLOSED_WHILE_WRITING_OUTBOUND_RESPONSE_BODY;
Expand Down

0 comments on commit cf289ec

Please sign in to comment.