Re: wget2: How to understand log output

Tim Rühsen <[email protected]> Sat, 8 Jun 2024 13:28:08 +0200
Newsgroups gmane.comp.web.wget.general
Message-ID <[email protected]>
On 6/4/24 21:28, David Niklas wrote:
> I understand why wget2's behavior is different. There are use cases for
> it. I'm open to the new behavior, provided that there is some way to
> follow the original behavior.
> 
> The arguments for the wget1's behavior are (in no particular order):

<...>

I think your arguments are correct.
A new option to switch the behavior back to wget1 would be fine, maybe 
even make it the default behavior.

https://gitlab.com/gnuwget/wget2/-/issues/668

>>   > What does "Adding URL: $URL" mean?
>>
>> It means that a URL has been found and it now is checked whether it will
>> be enqueued into the list of to-be-downloaded URLs. These checks are
>> e.g. if the URL is parsable/valid, has a known scheme (HTTP or HTTPS),
>> isn't already known, matches filters etc. One of the next lines will
>> tell you whether the URL was actually enqueued or whether it has been
>> sorted out (the reason is given as well).
> 
> I'd prefer it if wget2 wasn't so chatty. Knowing what is DL'ed is useful,
> what's enqueued is okay-ish, but when wget2 starts listing off every URL
> it's found I find it to be too verboten IMHO.

I am open to changes here, this is not set in stone.

> I tried -nv, but it's really quiet. Though it does give a reason, it
> doesn't list HTTP response codes for failed requests. E.g.
> 
> Failed to open web.archive.org/web/index.html
> web.archive.org/web/index.html not found (2)
> 
> While I'm at it, what does "(2)" mean?

That is the errno value that was set when some function (like open()) 
returned an error.

There are different tools to convert this into text (e.g. "errno" from 
the debian moreutils package).

$ errno 2
ENOENT 2 No such file or directory

> Thanks,
> David
> 

Regards, Tim
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEHLJ9vJhhSy1YQWRtCDAttqJnBCgFAmZkQEgFAwAAAAAACgkQCDAttqJnBCit
Lg//WgTqRl5hfIwnIU/AP+5XhNO0I8faicwBEPT18/E5pOr1OTX3CCxVYzfFAwJ0Q7ypYyLvX8hB
l0RzXnf34VzmFFU8X1tGw//5SInK2fSnryQKbQ9HXo8cDkMvgljghv+V7LI24wnhHScsh/Obdzvr
iUVcUrWdnWugvDl1vrr+ISgqBbMi8nn04Z9eCMbpbbrV7+ONJkcxi1/FpdVf5KG3UtxR27K0g9HQ
34QhZftE2D3MrHtpDhw6lP781xOZxbbVoR9erm8MFO42QIepJ12GUR6HoEpUtiUlhKlJ+CruI2Na
DBukvwT+ates1A5WkhHO9uGDxg/O8dKd6QlWSVJsYH2hUvvMIfrg7PnRWkF2srjoAZCMx+dqh0zJ
2352vZfH1UOa5tJwSfmkWa/aeOHBd8L0As8Q64qQojP5YQv+gZxYyzSH3wS5dhGTBNm+A4kj+8jA
SeQ0mpBQbTtuSWr7UpIqvOHRopcOV0nfVqSAnQK9MBPO08YvsyCsWH/VhPwWCTUOnCDyJC2ghOCo
aPBjNcu05jDO8dSnL49fwN9iTeAstW+8eQyDUMytrJtDGLhou1kzQ/fx9PL0MKQrTj/pPocDbknT
hToORpVKB6Jszx6+pxUhDpbblGd7jeZnHphO9ZvO6bjxFUBxs/3XvzA9OknBxxxnHR88bde2hynO
bVo=
=l6wO
-----END PGP SIGNATURE-----