Skip to content

Commit

Permalink
Changed logger to exclude debug logs from verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirosson committed Dec 6, 2020
1 parent 8a8476b commit 1ed3a1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ class ScannerProcessor(
) : ArchiveItemVisitor {

fun scanLibrary(archive: Archive): List<ScanResult> {
LoggerHelper.debug("")
LoggerHelper.debug("Artifact: ${archive.artifactDefinition}")
LoggerHelper.debug("Path: ${archive.relativePath}")

val scanResults = mutableListOf<ScanResult>()
archive.accept(this, scanResults)
return scanResults
Expand Down

0 comments on commit 1ed3a1b

Please sign in to comment.