This message was deleted.
# community-support
s
This message was deleted.
c
Gradle takes over all the logging for builds. Does it work if running the build with
--debug
?
n
no
c
there are some loggers that are force-disabled, checking if this is one of them…
are you sure nothing is coming out? The HTTP connectivity is likely suppressed by Gradle, though there should still be something from AWS code.
This will help re-enable the HTTP logging:
Copy code
public fun enableHttpClientHeaderLogging() {
    val loggerFactory = LoggerFactory.getILoggerFactory() as OutputEventListenerBackedLoggerContext
    val loggersField: Field = OutputEventListenerBackedLoggerContext::class.java.declaredFields.first { it.name == "loggers" }
    loggersField.isAccessible = true
    val loggers = loggersField.get(loggerFactory) as ConcurrentHashMap<*, *>
    loggers.remove("org.apache.http.headers")
    println("Enabled HTTP client header logging; you may need to restart the daemon (./gradlew daemon --stop)")
}
n
ok, that seems to have worked. THanks