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:
parent
82821e523e
commit
09de253d8f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue