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:
parent
d08cda0e1f
commit
700c782a1e
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue