Skip to content

Commit

Permalink
Update backup time zone behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
dogoncouch committed Apr 5, 2018
1 parent 825f354 commit 1566cf7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion logdissect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def load_inputs(self):
else:
fullpath = os.path.abspath(str(f))
self.input_files.append(fullpath)
else: return 1
else:
print('File '+ f + ' not found')
return 1

# Parsing modules:
def list_parsers(self, *args):
Expand Down
2 changes: 1 addition & 1 deletion logdissect/parsers/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def parse_file(self, sourcepath):
entry['year'] = str(entryyear)
if self.tzone:
entry['tzone'] = self.tzone
elif not 'tzone' in entry.keys():
else:
entry['tzone'] = self.backuptzone
entry = logdissect.utils.get_utc_date(entry)
entry['raw_text'] = ourline
Expand Down
2 changes: 0 additions & 2 deletions logdissect/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ def convert_unix_datestamp(entry):
entry['tstamp'] = str(timestamp.strftime('%H%M%S.%f'))
entry['numeric_date_stamp'] = entry['year'] + entry['month'] + \
entry['day'] + entry['tstamp']
print(entry['year'] + entry['month'] + \
entry['day'] + entry['tstamp'])

return entry

Expand Down

0 comments on commit 1566cf7

Please sign in to comment.