better logs

This commit is contained in:
Aria Moradi
2021-08-26 22:10:27 +04:30
parent 90822e3858
commit 3d3939e808

View File

@@ -23,7 +23,7 @@ class CloudflareInterceptor : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
val originalRequest = chain.request()
logger.debug { "CloudflareInterceptor is has started." }
logger.trace { "CloudflareInterceptor is being used." }
val response = chain.proceed(originalRequest)
@@ -32,7 +32,7 @@ class CloudflareInterceptor : Interceptor {
return response
}
logger.debug { "CloudflareInterceptor is kicking in..." }
logger.debug { "Cloudflare anti-bot is on, CloudflareInterceptor is kicking in..." }
return try {
response.close()