Fixed logging issue in payload downloading

Change-Id: Ice45ca913a60ef5798fbc1d0d4e741083f647316
This commit is contained in:
Michael Dong 2017-11-09 17:24:34 -06:00
parent cb460174c3
commit daa6575940
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ from syntribos.clients.http.client import SynHTTPClient
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
LOG.addHandler(logging.StreamHandler())
temp_dirs = []
remote_dirs = []
@ -88,7 +89,7 @@ def extract_tar(abs_path):
try:
os.mkdir("remote")
except OSError:
LOG.error("path exists already, not creating remote directory.")
LOG.error("Path exists already, not creating remote directory.")
remote_path = os.path.abspath("remote")
def safe_paths(tar_meta):