Browse Source

condense getFolderJSON debug logging

master
cinnaboot 7 years ago
parent
commit
eafe22bec9
  1. 6
      video_metadata/views/file_listing.py

6
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):

Loading…
Cancel
Save