/**
 * Copyright 2013 Facebook, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package com.facebook.nifty.core;

import org.jboss.netty.channel.ChannelEvent;
import org.jboss.netty.channel.ExceptionEvent;
import org.jboss.netty.handler.logging.LoggingHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.SocketAddress;

public class NiftyExceptionLogger extends LoggingHandler
{
    private static final Logger log = LoggerFactory.getLogger(NiftyExceptionLogger.class);

    @Override
    public void log(ChannelEvent event)
    {
        if (event instanceof ExceptionEvent) {
            ExceptionEvent exceptionEvent = (ExceptionEvent) event;
            SocketAddress remoteAddress = exceptionEvent.getChannel().getRemoteAddress();
            log.error("Exception triggered on channel connected to " + remoteAddress,
                      exceptionEvent.getCause());
        }
    }
}

@@ -1,11 +1,10 @@
 /*
-*
 %0A * Copy
@@ -9,16 +9,25 @@
 pyright 
+(C) 2012-
 2013 Fac
@@ -111,16 +111,19 @@
 e%22);
+%0A *
  you may
 %0A * 
@@ -118,19 +118,16 @@
  you may
-%0A *
  not use
@@ -175,16 +175,19 @@
 License.
+%0A *
  You may
@@ -193,19 +193,16 @@
 y obtain
-%0A *
  a copy 
@@ -224,20 +224,16 @@
 at%0A *%0A *
-    
  http://
@@ -414,16 +414,19 @@
 SIS,
+%0A *
  WITHOUT
 %0A * 
@@ -421,19 +421,16 @@
  WITHOUT
-%0A *
  WARRANT
@@ -490,16 +490,19 @@
 ied.
+%0A *
  See the
 %0A * 
@@ -497,19 +497,16 @@
  See the
-%0A *
  License
@@ -557,16 +557,19 @@
 ions and
+%0A *
  limitat
@@ -572,19 +572,16 @@
 itations
-%0A *
  under t

Fix the license header in NiftyExceptionLogger