zola icon indicating copy to clipboard operation
zola copied to clipboard

logging of `zola serv`

Open emdete opened this issue 2 years ago • 4 comments

zola serv doesnt log anything but reload of content. it would be nice to have an access log and a log about what zola did to serv the request (for example shich files where considered).

this feature could be optional and enabled by a command line option.

cause for this request:

i had a page that showed a 404 with no further notice from zola serv. when i ran zola build an error was shown. it would speed up debugging if that error would be shown in zola serv as well.

emdete avatar Feb 21 '22 09:02 emdete

i had a page that showed a 404 with no further notice from zola serv. when i ran zola build an error was shown.

Do you have a way to reproduce that? zola build and zola serve call the same functions to build the site.

Keats avatar Feb 21 '22 10:02 Keats

mainly zola serve doesnt log anything here when serving files. its just silent. it logs errors when files change but it doesnt seem to logg all.

i often ran into the problem that i have zola serve running but if i restart it it doesnt come up again complaining with an error. so either errors should stop zola or errors should not prevent from starting. sometimes that error wasnt shown before.

i havent figured out yet which errors arent shown - need some more expirience with zola :)

emdete avatar Feb 21 '22 15:02 emdete

Ah I think i remember a similar issue where the Tera errors were not properly unrolled on reload, i'll have a look

Keats avatar Feb 21 '22 17:02 Keats

Were you using 0.15.3?

Keats avatar Mar 31 '22 21:03 Keats

I won't add logging to zola serve, it would be too much of a mess with all the parallelism anyway.

Keats avatar Jan 12 '23 22:01 Keats