Skip to content

Commit

Permalink
logger改成使用static,logger名使用所在类
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Aug 13, 2012
1 parent 967d11a commit 40f6aa6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
*/
public abstract class AbstractCodec implements Codec {

private final Logger logger = LoggerFactory.getLogger(getClass());
private static final Logger logger = LoggerFactory.getLogger(AbstractCodec.class);

protected Serialization getSerialization(Channel channel) {
return CodecSupport.getSerialization(channel.getUrl());
}

protected void checkPayload(Channel channel, long size) throws IOException {
protected static void checkPayload(Channel channel, long size) throws IOException {
int payload = Constants.DEFAULT_PAYLOAD;
if (channel != null && channel.getUrl() != null) {
payload = channel.getUrl().getPositiveParameter(Constants.PAYLOAD_KEY, Constants.DEFAULT_PAYLOAD);
Expand Down

0 comments on commit 40f6aa6

Please sign in to comment.