News for hackers. Stuff that matters.
Re:Guide to Python Debugging by mjbrownie on Tuesday June 02, 2020 @04:05AM (#23388795)
I recommend repr in all log messages too. For a work Django project we have common BaseModel repr(obj) expression that can be easily converted (using regexes in loki and promtail) into a clickable admin link.

So within loki (or any similar log tools) all logger.info(repr(object)) is a link straight to the admin. Worth the set up time.

There are no comments on this comment yet.