对于我的许多依赖项,我都使用s3存储库。在依赖项解析时,我得到了几十个冗长的警告:
WARNING: Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection. This is likely an error and may result in sub-optimal behavior. Request only the bytes you need via a ranged GET or drain the input stream after use.有一个GitHub issue可以解决这个问题,但它看起来不会很快解决。同时,我的日志也被这条消息污染了。
从Gradle的日志输出中排除该消息的最简单方法是什么?
发布于 2020-06-20 08:32:21
不幸的是,没有办法让特定的日志/记录器安静下来。您要么将所有日志静默,要么接受警告。
https://docs.gradle.org/current/userguide/logging.html#sec:choosing_a_log_level
您可以使用自定义记录器来过滤日志消息,直到问题得到解决:https://docs.gradle.org/current/userguide/logging.html#sec:changing_what_gradle_logs
https://stackoverflow.com/questions/62466258
复制相似问题