diff options
-rw-r--r-- | poezio/logger.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poezio/logger.py b/poezio/logger.py index df26af6f..b7fe83c8 100644 --- a/poezio/logger.py +++ b/poezio/logger.py @@ -409,11 +409,13 @@ def parse_log_lines(lines: List[str], jid: str = '') -> List[Dict[str, Any]]: message_lines = [] message = { 'history': True, - 'time': common.get_local_time(log_item.time) + 'time': common.get_local_time(log_item.time), + 'type': 'message', } size = log_item.nb_lines if isinstance(log_item, LogInfo): message_lines.append(log_item.text) + message['type'] = 'info' elif isinstance(log_item, LogMessage): message['nickname'] = log_item.nick message_lines.append(log_item.text) |