From 9fc5bd130ee22110450bd2eafc430bd7aeebd62a Mon Sep 17 00:00:00 2001 From: Greg Darke Date: Wed, 13 Feb 2008 23:32:03 +1100 Subject: [PATCH] Actually listen to the debug level set on the command line --- mail/sendmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/sendmail.py b/mail/sendmail.py index 457ecce..330a869 100755 --- a/mail/sendmail.py +++ b/mail/sendmail.py @@ -4,7 +4,6 @@ import decorators import smtplib, email, urllib import subprocess, sys, optparse import logging -logging.basicConfig(level=logging.DEBUG) #### USER CONFIG ##### def getUserConfig(): @@ -108,6 +107,7 @@ def main(): # Get the to addresses parser = getOptionParser() options, toAddrs = parser.parse_args() + logging.basicConfig(level=options.debugLevel) if not toAddrs: parser.error('No to addresses found') -- 2.39.2