Added seconds to logs

git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@7 63283fd4-ec1e-0410-9879-cb7f675518da
This commit is contained in:
msoulier 2006-10-04 03:02:16 +00:00
parent 82821e523e
commit 09de253d8f

View file

@ -23,7 +23,7 @@ MAX_DUPS = 20
logging.basicConfig(
level=LOG_LEVEL,
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%m-%d %H:%M')
datefmt='%m-%d %H:%M:%S')
logger = logging.getLogger('tftpy')
class TftpException(Exception):
@ -478,4 +478,4 @@ class TftpClient(Tftp):
dupcount = 0
for key in dups:
dupcount += dups[key]
logger.info("Received %d duplicate packets" % dupcount)
logger.info("Received %d duplicate packets" % dupcount)