I do agree that logging all downloads is unneeded, and I do agree that the
hanging case can happen quite often and one needs to be informed.
However, both goals are not conflicting, we just need to enhance the
logger/downloader to:
  * print a single statement that it starts downloading things
  * if a download is too slow (for example, nothing has been received since
a few seconds), log a warning message
  * log a summary when the download finished (like "Downloaded 5 artifacts
from central and yyy repositories")
It should not be very difficult to detect stalled downloads.

Le mer. 22 févr. 2023 à 12:51, Romain Manni-Bucau <rmannibu...@gmail.com> a
écrit :

> Eliotte I kind of fail to follow your reasoning because it literally means
> don't log any info and just set default log level to ERROR which I don't
> think will make anyone happy.
> You also tend to think everything works all the time but network issues are
> not work/fail kind of issue, the hanging case is really bothering and
> downloading logs really help there when you can keep them.
> Lastly downloads are not expected by maven after one build so being a bit
> more verbose is not an issue and going outside the machine should likely
> always be logged at the beginning these days.
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le mer. 22 févr. 2023 à 12:40, Elliotte Rusty Harold <elh...@ibiblio.org>
> a
> écrit :
>
> > On Tue, Feb 21, 2023 at 11:14 PM Romain Manni-Bucau
> > <rmannibu...@gmail.com> wrote:
> > >
> > >
> > > ....except there is no issue, the download is just slow so why would
> you
> > > fail?
> > > Hapoy to discuss a better solution but logging is a very satisfying
> one.
> >
> > If there is no issue, don't log it. If being slow is an issue
> > (arguably it isn't) report it when it's slow enough to be an issue,
> > and only then. Too many developer tools don't finish the job by
> > accurately diagnosing and reporting on errors. Instead they throw up
> > their hands and say, "Oops. Something went wrong. Here's an
> > incomprehensible dump of 50% of everything that happened. Maybe the
> > thing that went wrong is in there somewhere. Maybe it isn't. You
> > figure it out."
> >
> > Imagine a compiler that instead of identifying the offending line of
> > syntactically incorrect code simply printed every line of source code
> > as it parsed it, twice. Would anyone put up with such a compiler or
> > would the bug reports overflow the Github issue tracker? Why do we
> > accept that level of error reporting in Maven downloads?
> >
> > We shouldn't force people to do what computers can easily do. One of
> > the things a computer can do is notice when one out of hundreds of
> > dependencies is causing a problem, and blame  exactly that one
> > artifact.
> >
> > --
> > Elliotte Rusty Harold
> > elh...@ibiblio.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > For additional commands, e-mail: dev-h...@maven.apache.org
> >
> >
>


-- 
------------------------
Guillaume Nodet

Reply via email to