remove log in tools/make_test_{event_}data.py
They are never used, we directly use print instead. Change-Id: Ia0d94026e0e514ab5a56675e162f98b77c797010
This commit is contained in:
parent
3c3eb009ac
commit
2b91096add
@ -26,9 +26,7 @@ source .tox/py27/bin/activate
|
||||
"""
|
||||
import argparse
|
||||
import datetime
|
||||
import logging
|
||||
import random
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
from oslo_config import cfg
|
||||
@ -189,15 +187,6 @@ def main():
|
||||
|
||||
args = get_parser().parse_args()
|
||||
|
||||
# Set up logging to use the console
|
||||
console = logging.StreamHandler(sys.stderr)
|
||||
console.setLevel(logging.DEBUG)
|
||||
formatter = logging.Formatter('%(message)s')
|
||||
console.setFormatter(formatter)
|
||||
root_logger = logging.getLogger('')
|
||||
root_logger.addHandler(console)
|
||||
root_logger.setLevel(logging.DEBUG)
|
||||
|
||||
# Connect to the metering database
|
||||
conn = storage.get_connection_from_config(cfg.CONF)
|
||||
|
||||
|
@ -23,9 +23,7 @@ source .tox/py27/bin/activate
|
||||
"""
|
||||
import argparse
|
||||
import datetime
|
||||
import logging
|
||||
import random
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
from oslo_config import cfg
|
||||
@ -100,15 +98,6 @@ def main():
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# Set up logging to use the console
|
||||
console = logging.StreamHandler(sys.stderr)
|
||||
console.setLevel(logging.DEBUG)
|
||||
formatter = logging.Formatter('%(message)s')
|
||||
console.setFormatter(formatter)
|
||||
root_logger = logging.getLogger('')
|
||||
root_logger.addHandler(console)
|
||||
root_logger.setLevel(logging.DEBUG)
|
||||
|
||||
# Connect to the event database
|
||||
conn = storage.get_connection_from_config(cfg.CONF, 'event')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user