Skip to content

Commit 64f4703

Browse files
committed
Defer creating logger in StandardWebSocketHandlerAdapter to instantiation time
Closes gh-25427
1 parent eb032a5 commit 64f4703

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-2019 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.
@@ -42,7 +42,7 @@
4242
*/
4343
public class StandardWebSocketHandlerAdapter extends Endpoint {
4444

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

4747
private final WebSocketHandler handler;
4848

0 commit comments

Comments
 (0)