From 1ed3a1bec4e9400e394ab3ed03ebad69c51b5a6f Mon Sep 17 00:00:00 2001 From: Maxi Rosson Date: Sun, 6 Dec 2020 18:33:54 -0300 Subject: [PATCH] Changed logger to exclude debug logs from verbose mode --- .../java/com/dipien/byebyejetifier/common/LoggerHelper.kt | 2 +- .../com/dipien/byebyejetifier/scanner/ScannerProcessor.kt | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/common/LoggerHelper.kt b/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/common/LoggerHelper.kt index 396d426..27e3f84 100644 --- a/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/common/LoggerHelper.kt +++ b/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/common/LoggerHelper.kt @@ -42,7 +42,7 @@ object LoggerHelper { private fun getLogLevel(logLevel: LogLevel): LogLevel { return if (verbose) { - if (logLevel.ordinal < LogLevel.LIFECYCLE.ordinal) { + if (logLevel != LogLevel.DEBUG) { LogLevel.LIFECYCLE } else { logLevel diff --git a/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/scanner/ScannerProcessor.kt b/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/scanner/ScannerProcessor.kt index e6d5f6b..69a5266 100644 --- a/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/scanner/ScannerProcessor.kt +++ b/bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/scanner/ScannerProcessor.kt @@ -11,10 +11,6 @@ class ScannerProcessor( ) : ArchiveItemVisitor { fun scanLibrary(archive: Archive): List { - LoggerHelper.debug("") - LoggerHelper.debug("Artifact: ${archive.artifactDefinition}") - LoggerHelper.debug("Path: ${archive.relativePath}") - val scanResults = mutableListOf() archive.accept(this, scanResults) return scanResults