]> source.dussan.org Git - vaadin-framework.git/commitdiff
Correct logging when a push connection can't find a session (#15220)
authorArtur Signell <artur@vaadin.com>
Mon, 16 Mar 2015 14:55:56 +0000 (16:55 +0200)
committerVaadin Code Review <review@vaadin.com>
Wed, 18 Mar 2015 14:06:43 +0000 (14:06 +0000)
Change-Id: I8b3cabc942600b3366f59697441d0613c9908a24

server/src/com/vaadin/server/communication/PushHandler.java

index c570d220868b4bd60a127c88955c9300059a82ad..f3fb16461f7b4d88bec48f1f3b15f8af7e4d1a6e 100644 (file)
@@ -356,9 +356,13 @@ public class PushHandler extends AtmosphereResourceEventListenerAdapter {
                     "Could not get session. This should never happen", e);
             return;
         } catch (SessionExpiredException e) {
+            // This happens at least if the server is restarted without
+            // preserving the session. After restart the client reconnects, gets
+            // a session expired notification and then closes the connection and
+            // ends up here
             getLogger()
-                    .log(Level.SEVERE,
-                            "Session expired before push was disconnected. This should never happen",
+                    .log(Level.FINER,
+                            "Session expired before push disconnect event was received",
                             e);
             return;
         }