1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

warn only if level >= 2

This commit is contained in:
Cedric Beust 2016-07-18 01:34:46 -08:00
parent d08cda0e1f
commit 700c782a1e

View file

@ -104,7 +104,7 @@ class KotlinCompiler @Inject constructor(
message: String, location: CompilerMessageLocation) {
if (severity.isError) {
System.err.println(location.dump(message))
} else if (severity == CompilerMessageSeverity.WARNING) {
} else if (severity == CompilerMessageSeverity.WARNING && KobaltLogger.LOG_LEVEL >= 2) {
warn(location.dump(message))
} else if (severity == CompilerMessageSeverity.INFO && KobaltLogger.LOG_LEVEL >= 2) {
log(2, location.dump(message))