Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/InclusiveByteRange.java @ 820:8e9db0bbf4f9
remove org.eclipse.jetty.util.log and upgrade slf4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 13 Sep 2016 23:13:06 -0600 |
parents | 3428c60d7cfc |
children |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
21 import java.util.Enumeration; | 21 import java.util.Enumeration; |
22 import java.util.List; | 22 import java.util.List; |
23 import java.util.StringTokenizer; | 23 import java.util.StringTokenizer; |
24 | 24 |
25 import org.eclipse.jetty.util.LazyList; | 25 import org.eclipse.jetty.util.LazyList; |
26 import org.eclipse.jetty.util.log.Log; | 26 import org.slf4j.Logger; |
27 import org.eclipse.jetty.util.log.Logger; | 27 import org.slf4j.LoggerFactory; |
28 | 28 |
29 /* ------------------------------------------------------------ */ | 29 /* ------------------------------------------------------------ */ |
30 /** Byte range inclusive of end points. | 30 /** Byte range inclusive of end points. |
31 * <PRE> | 31 * <PRE> |
32 * | 32 * |
47 * @version $version$ | 47 * @version $version$ |
48 * | 48 * |
49 */ | 49 */ |
50 public class InclusiveByteRange | 50 public class InclusiveByteRange |
51 { | 51 { |
52 private static final Logger LOG = Log.getLogger(InclusiveByteRange.class); | 52 private static final Logger LOG = LoggerFactory.getLogger(InclusiveByteRange.class); |
53 | 53 |
54 long first = 0; | 54 long first = 0; |
55 long last = 0; | 55 long last = 0; |
56 | 56 |
57 public InclusiveByteRange(long first, long last) | 57 public InclusiveByteRange(long first, long last) |
139 } | 139 } |
140 } | 140 } |
141 catch (NumberFormatException e) | 141 catch (NumberFormatException e) |
142 { | 142 { |
143 LOG.warn("Bad range format: {}",t); | 143 LOG.warn("Bad range format: {}",t); |
144 LOG.ignore(e); | 144 LOG.trace("",e); |
145 continue; | 145 continue; |
146 } | 146 } |
147 } | 147 } |
148 } | 148 } |
149 catch(Exception e) | 149 catch(Exception e) |
150 { | 150 { |
151 LOG.warn("Bad range format: {}",t); | 151 LOG.warn("Bad range format: {}",t); |
152 LOG.ignore(e); | 152 LOG.trace("",e); |
153 } | 153 } |
154 } | 154 } |
155 return LazyList.getList(satRanges,true); | 155 return LazyList.getList(satRanges,true); |
156 } | 156 } |
157 | 157 |