prosodyctl about: Show log file location

6 views
Skip to first unread message

William Brawner

unread,
May 6, 2025, 9:36:27 AMMay 6
to proso...@googlegroups.com
Hi all,

I've got a patch here to fix #868 (showing log file locations in prosodyctl
about). Unfortunately it seems it doesn't actually work, because it's always
printing out "console", which seems to indicate that I'm just reading the
default config. Is there anything I'm doing that's obviously wrong here?

Cheers,
William
prosodyctl-about-log-locations.patch

William Brawner

unread,
May 7, 2025, 11:04:25 PMMay 7
to proso...@googlegroups.com
Hi again,

I did some digging and found that there's a function in startup.lua called
force_console_logging, which overrides the log config for prosodyctl to force
logs to go to the console. I was able to work around this by sticking the
original logging config into the config under a different key so that
prosodyctl can also grab a reference to it. I've attached the patch below with
the aforementioned workaround. Does this look like a reasonable approach?

Best,
William
startup-original-logging-config.patch
Reply all
Reply to author
Forward
0 new messages