Skip to content

Commit 0b976e0

Browse files
committed
fix(runconfig): remove unnecessary log statements #100
Remove unnecessary log statements for debugging. The logs have been removed from AutoDevCommandRunner and DevInsRunConfigurationProfileState
1 parent 48c4256 commit 0b976e0

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/run/DevInsRunConfigurationProfileState.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ open class DevInsRunConfigurationProfileState(
7171
// start message log in here
7272
console.addMessageFilter(object : com.intellij.execution.filters.Filter {
7373
override fun applyFilter(line: String, entireLength: Int): Filter.Result? {
74-
// println("Filtering: $line")
74+
println("Filtering: $line")
7575
return null
7676
}
7777
})
@@ -89,13 +89,12 @@ open class DevInsRunConfigurationProfileState(
8989
val compileResult = compiler.compile()
9090

9191
val output = compileResult.output
92-
9392
val agent = compileResult.workingAgent
9493

9594
if (agent != null) {
9695
agentRun(output, console, processHandler, agent)
9796
} else {
98-
defaultRun(output, console, processHandler, compileResult.isLocalCommand, executor, runner)
97+
defaultRun(output, console, processHandler, compileResult.isLocalCommand)
9998
}
10099

101100
return DefaultExecutionResult(console, processHandler)
@@ -139,9 +138,7 @@ open class DevInsRunConfigurationProfileState(
139138
output: String,
140139
console: ConsoleViewWrapperBase,
141140
processHandler: ProcessHandler,
142-
isLocalMode: Boolean,
143-
executor: Executor?,
144-
runner: ProgramRunner<*>
141+
isLocalMode: Boolean
145142
) {
146143
// contains <DevInsError> means error
147144
output.split("\n").forEach {

src/main/kotlin/cc/unitmesh/devti/runconfig/AutoDevCommandRunner.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import org.jetbrains.annotations.NonNls
1717

1818
class AutoDevCommandRunner : GenericProgramRunner<RunnerSettings>() {
1919
companion object {
20-
private val log: Logger = logger<AutoDevCommandRunner>()
2120
const val RUNNER_ID: String = "AutoDevCommandRunner"
2221
}
2322

@@ -35,8 +34,6 @@ class AutoDevCommandRunner : GenericProgramRunner<RunnerSettings>() {
3534

3635
@Suppress("UnstableApiUsage")
3736
private fun showRunContent(result: ExecutionResult?, environment: ExecutionEnvironment): RunContentDescriptor? {
38-
log.debug("showRunContent")
39-
4037
return result?.let {
4138
ExecutionUiService.getInstance().showRunContent(it, environment)
4239
}

0 commit comments

Comments
 (0)