Skip to content

Commit 44e4579

Browse files
author
Artyom Abakumov
committed
Add plugin parsing to tracemgr output
1 parent 4d44614 commit 44e4579

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/firebird/driver/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5581,6 +5581,8 @@ def store():
55815581
'%Y-%m-%d %H:%M:%S')
55825582
elif line.lstrip().startswith('flags:'):
55835583
current['flags'] = line.split(':')[1].strip().split(',')
5584+
elif line.lstrip().startswith('plugins:'):
5585+
current['plugins'] = line.split(':')[1].strip().split(',')
55845586
else: # pragma: no cover
55855587
raise InterfaceError(f"Unexpected line in trace session list: {line}")
55865588
store()

src/firebird/driver/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,12 +1372,14 @@ class TraceSession:
13721372
timestamp (datetime.datetime): Session start timestamp
13731373
name (str): Session name (if defined)
13741374
flags (list): List with session flag names
1375+
plugins (list): List with trace plugins for this session
13751376
"""
13761377
id: int
13771378
user: str
13781379
timestamp: datetime.datetime
13791380
name: str = ''
13801381
flags: list = field(default_factory=list)
1382+
plugins: list = field(default_factory=list)
13811383

13821384
@dataclass
13831385
class ImpData:

0 commit comments

Comments
 (0)