Skip to content

Commit ca9368c

Browse files
committed
Revert changing the log level to info
1 parent 80c647c commit ca9368c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

mokkery-plugin/src/main/kotlin/dev/mokkery/plugin/ir/transformer/MokkeryRootTransformer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import dev.mokkery.plugin.ir.IrMokkeryPluginScope
77
import dev.mokkery.plugin.ir.MokkeryIr
88
import dev.mokkery.plugin.ir.applyTransformChildrenVoid
99
import dev.mokkery.plugin.ir.transformer.core.CoreTransformer
10-
import dev.mokkery.plugin.ir.transformer.core.info
10+
import dev.mokkery.plugin.ir.transformer.core.log
1111
import dev.mokkery.plugin.ir.transformer.core.referenced
1212
import dev.mokkery.plugin.ir.transformer.mock.replaceMockCall
1313
import dev.mokkery.plugin.ir.transformer.mock.replaceMockManyCall
@@ -76,7 +76,7 @@ class MokkeryRootTransformer(pluginScope: IrMokkeryPluginScope) : CoreTransforme
7676
override fun visitModuleFragment(declaration: IrModuleFragment): IrModuleFragment {
7777
val time = TimeSource.Monotonic.markNow()
7878
declaration.transformChildrenVoid()
79-
info { "Plugin time: ${time.elapsedNow()}" }
79+
log { "Plugin time: ${time.elapsedNow()}" }
8080
return declaration
8181
}
8282

mokkery-plugin/src/main/kotlin/dev/mokkery/plugin/ir/transformer/core/LogApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import dev.mokkery.plugin.ir.messageCollector
55
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
66

77
context(scope: TransformerScope)
8-
inline fun info(message: () -> String) {
9-
messageCollector.report(CompilerMessageSeverity.INFO, "${MokkeryConfig.PLUGIN_ID}: ${message()}")
8+
inline fun log(message: () -> String) {
9+
messageCollector.report(CompilerMessageSeverity.LOGGING, "${MokkeryConfig.PLUGIN_ID}: ${message()}")
1010
}
1111

0 commit comments

Comments
 (0)