Resolve merge conflicts
This commit is contained in:
commit
8e382d9383
2 changed files with 16 additions and 3 deletions
|
|
@ -133,8 +133,12 @@ class ChannelDetailView(ChannelMixin, ObjectDetailView):
|
|||
for log in (x.strip() for x in tail_log_file(filename, 0, self.max_num_lines)):
|
||||
if not log:
|
||||
continue
|
||||
time, msg = log.split(" [-] ")
|
||||
time_key = time.split(":")[0]
|
||||
try:
|
||||
time, msg = log.split(" [-] ")
|
||||
time_key = time.split(":")[0]
|
||||
except ValueError:
|
||||
# malformed log line. Skip.
|
||||
continue
|
||||
|
||||
bucket.append({"key": time_key, "timestamp": time, "message": msg})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue