# Copyright 2013-2014 DataStax, 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.

import logging

log = logging.getLogger()
log.setLevel('DEBUG')

@@ -637,8 +637,265 @@
 DEBUG')%0A
+# if nose didn't already attach a log handler, add one here%0Aif not log.handlers:%0A    handler = logging.StreamHandler()%0A    handler.setFormatter(logging.Formatter('%25(asctime)s %25(levelname)s %5B%25(module)s:%25(lineno)s%5D: %25(message)s'))%0A    log.addHandler(handler)%0A

Add test logger if not added by nose