fix(api): keep error URLs readable and mask host paths in dashboard logs

This commit is contained in:
imSp4rky
2026-09-08 17:37:32 -06:00
parent 0b055e43ba
commit 76d82df25b
6 changed files with 65 additions and 21 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ from aiohttp import web
from unshackle.core import __code_hash__, __version__
from unshackle.core.api.events import bus
from unshackle.core.config import config
from unshackle.core.utils.redact import redact_secrets
RATE_LIMIT_WINDOW = 3600.0
@@ -227,7 +228,7 @@ class RingLogHandler(logging.Handler):
"ts": record.created,
"level": record.levelname,
"logger": record.name,
"msg": self.format(record),
"msg": redact_secrets(self.format(record)),
}
self.records.append(item)
bus.publish("log", item)