I am trying to debug some things that seem to be broken in my website and did run this:
❯ hugo server -e gargulus --debug
ERROR deprecated: --debug was deprecated in Hugo v0.114.0 and will be removed in Hugo 0.137.0. use --logLevel debug
Watching for changes in ...
Start building sites …
hugo v0.136.4-099b05a63c5f66d433f679299aed48f2080d677b+extended linux/amd64 BuildDate=2024-10-22T08:35:58Z VendorInfo=gohugoio
...
ERROR deprecated: .Page.NextPage was deprecated in Hugo v0.123.0 and will be removed in Hugo 0.137.0. Use .Page.Next instead.
ERROR deprecated: .Page.PrevPage was deprecated in Hugo v0.123.0 and will be removed in Hugo 0.137.0. Use .Page.Prev instead.
Ok, there is a new CLI parameter… let’s try this:
❯ hugo server -e gargulus --logLevel debug
Watching for changes in ...
Start building sites …
hugo v0.136.4-099b05a63c5f66d433f679299aed48f2080d677b+extended linux/amd64 BuildDate=2024-10-22T08:35:58Z VendorInfo=gohugoio
...
| EN | FR
-------------------+----+-----
Pages | 22 | 14
Paginator pages | 1 | 0
Non-page files | 0 | 0
Static files | 11 | 11
Processed images | 0 | 0
Aliases | 2 | 1
Cleaned | 0 | 0
Built in 74 ms
Environment: "gargulus"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
I removed a bunch of logging data from the output, but what makes me nervous is that with --debug
, I get deprecation errors, and with --logLevel debug
, I don’t.
Is that maybe only related to NextPage/PrevPage? Or is there something more sinister going on?
Edit: When I run:
hugo server -D -E -F --environment gargulus --disableFastRender --verbose --logLevel debug --debug --tlsAuto --panicOnWarning
Then the error of the --debug
deprecation is not shown, which is why I didn’t discovered that earlier.