Update logging

This commit is contained in:
Arinerron 2018-04-18 18:47:35 -07:00
parent 77f811c455
commit 7369b63614
No known key found for this signature in database
GPG key ID: 99383627861C62F0
9 changed files with 68 additions and 58 deletions

View file

@ -47,10 +47,10 @@ class POW:
if iFound:
endTime = math.floor(time.time())
if self.reporting:
logger.info('Found token ' + token)
logger.info('took ' + str(endTime - startTime))
logger.info('Found token ' + token, timestamp=True)
logger.info('took ' + str(endTime - startTime), timestamp=True)
self.result = token
def __init__(self, difficulty, bitcoinNode):
self.foundHash = False
self.difficulty = difficulty
@ -72,7 +72,7 @@ class POW:
def shutdown(self):
self.hashing = False
self.puzzle = ''
def changeDifficulty(self, newDiff):
self.difficulty = newDiff
@ -83,4 +83,4 @@ class POW:
except AttributeError:
retVal = False
self.result = False
return retVal
return retVal