aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/main.py
diff options
context:
space:
mode:
authorPjotr Prins2020-05-28 10:44:42 -0500
committerPjotr Prins2020-05-28 10:44:42 -0500
commit2bcf4c45eaba42b36cff93c9cd5e461baaf3eae1 (patch)
tree2e8e789fb0261d0230db76b2f00e50ec40d83291 /bh20simplewebuploader/main.py
parent64d832fb49d8ef3799290ec5bd67c69c2c87e5d6 (diff)
downloadbh20-seq-resource-2bcf4c45eaba42b36cff93c9cd5e461baaf3eae1.tar.gz
bh20-seq-resource-2bcf4c45eaba42b36cff93c9cd5e461baaf3eae1.tar.lz
bh20-seq-resource-2bcf4c45eaba42b36cff93c9cd5e461baaf3eae1.zip
Web: debugging metadata submission
Diffstat (limited to 'bh20simplewebuploader/main.py')
-rw-r--r--bh20simplewebuploader/main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index 4f14d10..847e36b 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -3,6 +3,7 @@ import itertools
import tempfile
import shutil
import subprocess
+import logging
import os
import sys
import re
@@ -13,6 +14,9 @@ from flask import Flask, request, redirect, send_file, send_from_directory, rend
import os.path
import requests
+logging.basicConfig(level=logging.DEBUG)
+log = logging.getLogger(__name__ )
+log.debug("Entering web uploader")
if not os.path.isfile('bh20sequploader/mainx.py'):
print("WARNING: run FLASK from the root of the source repository!", file=sys.stderr)