journal.Reader.add_match() does not support glob matching
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 領域
- api, operating-systems
研究方向
Start in _reader.c and reproduce the journal.Reader.add_match(_SYSTEMD_UNIT="kres*") case described in the issue, comparing it with journalctl -u 'kres*'. Trace how matches are passed to the systemd journal API and determine the scope needed for glob support. Done means the Python API returns matching units such as kresd@dns1 and kres-cache-gc, with coverage for the behavior if an existing test location is found.
由索引模型根據 Issue 內容生成。
描述
Versions:
- Debian 9 (Stretch)
- python3 3.5.3-1
- python3-system 233-1
- systemd 232-25+deb9u
... but as far as I can tell from _reader.c it applies to master (a402d08da41413507a4ebebf18de897f7ddf1dd2) as well.
For example:
journal_reader.add_match(_SYSTEMD_UNIT="kres*")
always returns empty output. At the same time command journalctl -u 'kres*' lists log for units kresd@dns1, kresd@dns2, kres-cache-gc etc.
It would be nice if the Python API could do the same. For now I'm going to resort calling journalctl as subprocess.
- 主要語言
- C
- 星號
- 522
- 分支
- 79
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
systemd/python-systemd 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 48/100
systemd/python-systemd#177 · 1 則留言 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 42/100
systemd/python-systemd#169 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 48/100
systemd/python-systemd#167 · 19 則留言 ·
-
難度 5/5 一週以上 新手友好度 35/100
systemd/python-systemd#152 · 1 則留言 · 13 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 45/100
systemd/python-systemd#146 · 2 則留言 ·
查看 systemd/python-systemd 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
-
難度 1/5 1 小時以內 新手友好度 75/100
NabuCasa/silabs-firmware-builder#231 · 1 則留言 ·
-
難度 1/5 1-3 小時 新手友好度 88/100
ClickHouse/pg_clickhouse#383 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
johnsonjh/emu2-cpm86#68 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆