diff options
author | Mikael Grankvist <mgrankvi@vaadin.com> | 2013-01-08 09:07:53 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-02-28 09:26:27 +0000 |
commit | aa42551d80088583a2063a596dc1099b669ee9cb (patch) | |
tree | ac864874fe645606dbbf9ea95793ea0da82b7e6e /server/src/com/vaadin/ui/AbstractMedia.java | |
parent | 51fcdd88c1928c7c2537827e1a224fe171d492a9 (diff) | |
download | vaadin-framework-aa42551d80088583a2063a596dc1099b669ee9cb.tar.gz vaadin-framework-aa42551d80088583a2063a596dc1099b669ee9cb.zip |
(#10563) Logging now uses parameters.
Change-Id: Icc807cc2eb391fb0118800383fc93d1e23b04570
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractMedia.java')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractMedia.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/AbstractMedia.java b/server/src/com/vaadin/ui/AbstractMedia.java index 55464aeb8d..41677467bb 100644 --- a/server/src/com/vaadin/ui/AbstractMedia.java +++ b/server/src/com/vaadin/ui/AbstractMedia.java @@ -19,6 +19,7 @@ package com.vaadin.ui; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import java.util.logging.Level; import java.util.logging.Logger; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -88,9 +89,9 @@ public abstract class AbstractMedia extends AbstractComponent { int sourceIndex = Integer.parseInt(matcher.group(1)); if (sourceIndex < 0 || sourceIndex >= sources.size()) { - getLogger().warning( - "Requested source index " + sourceIndex - + " is out of bounds"); + getLogger().log(Level.WARNING, + "Requested source index {0} is out of bounds", + sourceIndex); return false; } |