Add some logging in ApplicationLayerHandler