wol-gate: 로그 줄에 KST 시각을 직접 기록 (docker -t는 UTC) + wake-watch 파서 대응

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Sonnet 5.5 committed 2026-10-15 10:56:02 +09:00
1 parent 28aaf80107
commit bf3c82ba96
2 files changed
+13 -8

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ EVENTS = f"{HOME}/events.jsonl"
KNOWN = f"{HOME}/known.json"
TRUENAS = "truenas_admin@192.168.0.240"
CONTAINER = "ix-wol-gate-wol-gate-1"
LINE = re.compile(r'^(\S+Z) \[wol-gate\] (waking|wake suppressed \(cooldown\)|wake blocked \(non-KR\)|wake denied \(watchlist\)) - triggered by (\S+) "(\w+) ([^"]*)" UA="(.*)"$')
LINE = re.compile(r'^(\S+Z) \[wol-gate\] (?:\d{4}-\d\d-\d\d \d\d:\d\d:\d\d KST )?(waking|wake suppressed \(cooldown\)|wake blocked \(non-KR\)|wake denied \(watchlist\)) - triggered by (\S+) "(\w+) ([^"]*)" UA="(.*)"$')
KIND = {"waking": "wake", "wake suppressed (cooldown)": "cooldown", "wake blocked (non-KR)": "non-kr", "wake denied (watchlist)": "denied"}
def load_known():