Skip to content

Commit d865460

Browse files
committed
Defer creating logger in StandardWebSocketHandlerAdapter to instantiation time
Closes gh-25427 (cherry picked from commit 64f4703)
1 parent 93e42b8 commit d865460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/StandardWebSocketHandlerAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
4141
*/
4242
public class StandardWebSocketHandlerAdapter extends Endpoint {
4343

44-
private static final Log logger = LogFactory.getLog(StandardWebSocketHandlerAdapter.class);
44+
private final Log logger = LogFactory.getLog(StandardWebSocketHandlerAdapter.class);
4545

4646
private final WebSocketHandler handler;
4747

0 commit comments

Comments
 (0)