Bugfix:Reporting do not report a status of failure to mongodb
[yardstick.git] / yardstick / __init__.py
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 import logging
11 import logging.config
12 import sys
13 import os
14 import yardstick.vTC.apexlake as apexlake
15
16 # Hack to be able to run apexlake unit tests
17 # without having to install apexlake.
18 sys.path.append(os.path.dirname(apexlake.__file__))
19
20 logging.basicConfig(
21     level=logging.WARNING,
22     format='[%(asctime)s] %(name)-20s %(filename)s:%(lineno)d '
23         '%(levelname)s %(message)s',  # noqa
24     datefmt='%m/%d/%y %H:%M:%S')
25 logging.getLogger(__name__).setLevel(logging.INFO)