Skip to content

Commit 97b4ad5

Browse files
wip: change commit logs to trace level
1 parent a1cf7b1 commit 97b4ad5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/kotlin/app/Logger.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ object Logger {
225225
}
226226
}
227227

228-
val isDebug: Boolean
229-
inline get() = LEVEL >= DEBUG
228+
val isTrace: Boolean
229+
inline get() = LEVEL >= TRACE
230230

231231
@kotlin.PublishedApi
232232
internal fun addBreadcrumb(message: String, level: Breadcrumb.Level) {

src/main/kotlin/app/hashers/CommitCrawler.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,18 @@ object CommitCrawler {
135135
// Smart casts are not yet supported for a mutable variable captured
136136
// in an inline lambda, see
137137
// https://youtrack.jetbrains.com/issue/KT-7186.
138-
if (Logger.isDebug) {
138+
if (Logger.isTrace) {
139139
val commitName = commit.name
140140
val commitMsg = commit.shortMessage
141-
Logger.debug { "commit: $commitName; '$commitMsg'" }
141+
Logger.trace { "commit: $commitName; '$commitMsg'" }
142142
if (parentCommit != null) {
143143
val parentCommitName = parentCommit.name
144144
val parentCommitMsg = parentCommit.shortMessage
145-
Logger.debug { "parent commit: $parentCommitName; " +
145+
Logger.trace { "parent commit: $parentCommitName; " +
146146
"'$parentCommitMsg'" }
147147
}
148148
else {
149-
Logger.debug { "parent commit: null" }
149+
Logger.trace { "parent commit: null" }
150150
}
151151
}
152152

0 commit comments

Comments
 (0)