diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-16 16:57:19 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-04-16 16:57:19 +0300 |
commit | 64055af699fce74303b690af76c8894cfeb42462 (patch) | |
tree | 2e43847348ad9963aa59c3b50f77f2c342bf44f0 /server | |
parent | ee38ec63f55f9b1b6fef2a0896d9ebd36c75b1d0 (diff) | |
download | vaadin-framework-64055af699fce74303b690af76c8894cfeb42462.tar.gz vaadin-framework-64055af699fce74303b690af76c8894cfeb42462.zip |
Fixed invalid log parameter references (#11622)
Change-Id: I93232d6696a5813f9cdad222c43444769ecf2fcf
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/communication/PushHandler.java | 14 | ||||
-rw-r--r-- | server/src/com/vaadin/server/communication/UidlRequestHandler.java | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/server/src/com/vaadin/server/communication/PushHandler.java b/server/src/com/vaadin/server/communication/PushHandler.java index a92d56235d..e88ffb69b6 100644 --- a/server/src/com/vaadin/server/communication/PushHandler.java +++ b/server/src/com/vaadin/server/communication/PushHandler.java @@ -100,7 +100,7 @@ public class PushHandler implements AtmosphereHandler { * pending push, send it now. */ getLogger().log(Level.FINER, - "New push connection with transport {}", + "New push connection with transport {0}", resource.transport()); resource.getResponse().setContentType( "text/plain; charset=UTF-8"); @@ -140,7 +140,7 @@ public class PushHandler implements AtmosphereHandler { null)); } catch (InvalidUIDLSecurityKeyException e) { getLogger().log(Level.WARNING, - "Invalid security key received from {}", + "Invalid security key received from {0}", resource.getRequest().getRemoteHost()); // Refresh on client side connection.sendMessage(VaadinService @@ -164,20 +164,20 @@ public class PushHandler implements AtmosphereHandler { if (event.isCancelled()) { // The client closed the connection. // TODO Do some cleanup - getLogger().log(Level.FINER, "Connection closed for resource {}", + getLogger().log(Level.FINER, "Connection closed for resource {0}", id); } else if (event.isResuming()) { // A connection that was suspended earlier was resumed (committed to // the client.) Should only happen if the transport is JSONP or // long-polling. - getLogger() - .log(Level.FINER, "Resuming request for resource {}", id); + getLogger().log(Level.FINER, "Resuming request for resource {0}", + id); } else { // A message was broadcast to this resource and should be sent to // the client. We don't do any actual broadcasting, in the sense of // sending to multiple recipients; any UIDL message is specific to a // single client. - getLogger().log(Level.FINER, "Writing message to resource {}", id); + getLogger().log(Level.FINER, "Writing message to resource {0}", id); Writer writer = resource.getResponse().getWriter(); writer.write("for(;;);[{" + event.getMessage() + "}]"); @@ -194,7 +194,7 @@ public class PushHandler implements AtmosphereHandler { resource.resume(); break; default: - getLogger().log(Level.SEVERE, "Unknown transport {}", + getLogger().log(Level.SEVERE, "Unknown transport {0}", resource.transport()); } } diff --git a/server/src/com/vaadin/server/communication/UidlRequestHandler.java b/server/src/com/vaadin/server/communication/UidlRequestHandler.java index 169b2cf545..14303daebc 100644 --- a/server/src/com/vaadin/server/communication/UidlRequestHandler.java +++ b/server/src/com/vaadin/server/communication/UidlRequestHandler.java @@ -121,7 +121,7 @@ public class UidlRequestHandler extends SynchronizedRequestHandler { return true; } catch (InvalidUIDLSecurityKeyException e) { getLogger().log(Level.WARNING, - "Invalid security key received from {}", + "Invalid security key received from {0}", request.getRemoteHost()); // Refresh on client side response.getWriter().write( |