From eafe22bec9b49049837f4c11687fc77584fa3c17 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sun, 22 Sep 2019 07:43:48 -0400 Subject: [PATCH] condense getFolderJSON debug logging --- video_metadata/views/file_listing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video_metadata/views/file_listing.py b/video_metadata/views/file_listing.py index 24b65be..aa00514 100644 --- a/video_metadata/views/file_listing.py +++ b/video_metadata/views/file_listing.py @@ -35,9 +35,9 @@ def getFolderJSON(subpath = ''): full_path = os.path.join(video_path, subpath) errors, paths = [], [] - current_app.logger.debug('video_path: {}'.format(video_path)) - current_app.logger.debug('subpath: {}'.format(subpath)) - current_app.logger.debug('full_path: {}'.format(full_path)) + current_app.logger.debug( + 'video_path: {}, subpath: {}, full_path: {}'.format(video_path, subpath, full_path) + ) # validate input if re.search('\.\.', subpath) or not os.path.exists(full_path):