fix: fixed epochs log parser
This commit is contained in:
parent
61da16ed91
commit
6e9bb866c7
@ -13,7 +13,7 @@ LAST_SESSION_FILE = '/root/.pwnagotchi-last-session'
|
|||||||
|
|
||||||
class SessionParser(object):
|
class SessionParser(object):
|
||||||
EPOCH_TOKEN = '[epoch '
|
EPOCH_TOKEN = '[epoch '
|
||||||
EPOCH_PARSER = re.compile(r'^\s*\[epoch (\d+)\] (.+)')
|
EPOCH_PARSER = re.compile(r'^.+\[epoch (\d+)\] (.+)')
|
||||||
EPOCH_DATA_PARSER = re.compile(r'([a-z_]+)=([^\s]+)')
|
EPOCH_DATA_PARSER = re.compile(r'([a-z_]+)=([^\s]+)')
|
||||||
TRAINING_TOKEN = ' training epoch '
|
TRAINING_TOKEN = ' training epoch '
|
||||||
START_TOKEN = 'connecting to http'
|
START_TOKEN = 'connecting to http'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user