aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-03-02 15:34:49 -0600
committerAndy Doan <andy.doan@linaro.org>2016-03-02 15:37:44 -0600
commit226b1e13cbb62b39f493fb386d9a483c092f2f26 (patch)
treeca9198d171a4473576be6a9476bbeac00d1efb5f
parentce6169d3ef21c6da2ef1948937f81e1f9806dbf9 (diff)
fix bad logging logic for report_process
Noticed this while getting things working on releases. Change-Id: I93f99d6dcd412640602b720b41f779a39b437e0e
-rw-r--r--license_protected_downloads/management/commands/report_process.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/license_protected_downloads/management/commands/report_process.py b/license_protected_downloads/management/commands/report_process.py
index 18cb012..fb6ea9d 100644
--- a/license_protected_downloads/management/commands/report_process.py
+++ b/license_protected_downloads/management/commands/report_process.py
@@ -8,7 +8,7 @@ import glob
import logging
import csv
-logging.getLogger().setLevel(logging.INFO)
+logging.getLogger().setLevel(logging.WARN)
class Command(BaseCommand):
@@ -31,10 +31,9 @@ class Command(BaseCommand):
# Process any report files that have failed in the pass.
for name in glob.glob(filename+'_*.csv'):
- print name
try:
+ logging.info('Processing %s', name)
for row in csv.reader(open(name)):
- logging.info('Processing %s', name)
Download.objects.create(ip=row[0], name=row[1],
link=str2bool(row[2]))
os.remove(name)