Skip to content

Commit

Permalink
Fix access log
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Jan 25, 2022
1 parent e6cce7e commit 5190529
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public Flux<Payload> requestChannel(Publisher<Payload> payloads) {
final HttpHeaders httpHeaders = new HttpHeaders();
this.copyHeaders(httpRequestMetadata).accept(httpHeaders);
if (log.isInfoEnabled()) {
log.info("{}\t101 {} {}", httpRequestMetadata.getMethod(), httpRequestMetadata.getUri(), httpRequestMetadata.getHeaders().getFirst(HttpHeaders.USER_AGENT));
log.info("{}\t{}\t101 {} {}", httpHeaders.getFirst("X-Real-IP"), httpRequestMetadata.getMethod(), httpRequestMetadata.getUri(), httpRequestMetadata.getHeaders().getFirst(HttpHeaders.USER_AGENT));
}
return Flux.create(sink -> sink.onDispose(this.webSocketClient.execute(uri, httpHeaders,
session -> session
Expand Down

0 comments on commit 5190529

Please sign in to comment.