Skip to content

Commit

Permalink
fix(runconfig): remove unnecessary log statements #100
Browse files Browse the repository at this point in the history
Remove unnecessary log statements for debugging.
The logs have been removed from AutoDevCommandRunner and DevInsRunConfigurationProfileState
  • Loading branch information
phodal committed Mar 21, 2024
1 parent 48c4256 commit 0b976e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Expand Up @@ -71,7 +71,7 @@ open class DevInsRunConfigurationProfileState(
// start message log in here
console.addMessageFilter(object : com.intellij.execution.filters.Filter {
override fun applyFilter(line: String, entireLength: Int): Filter.Result? {
// println("Filtering: $line")
println("Filtering: $line")
return null
}
})
Expand All @@ -89,13 +89,12 @@ open class DevInsRunConfigurationProfileState(
val compileResult = compiler.compile()

val output = compileResult.output

val agent = compileResult.workingAgent

if (agent != null) {
agentRun(output, console, processHandler, agent)
} else {
defaultRun(output, console, processHandler, compileResult.isLocalCommand, executor, runner)
defaultRun(output, console, processHandler, compileResult.isLocalCommand)
}

return DefaultExecutionResult(console, processHandler)
Expand Down Expand Up @@ -139,9 +138,7 @@ open class DevInsRunConfigurationProfileState(
output: String,
console: ConsoleViewWrapperBase,
processHandler: ProcessHandler,
isLocalMode: Boolean,
executor: Executor?,
runner: ProgramRunner<*>
isLocalMode: Boolean
) {
// contains <DevInsError> means error
output.split("\n").forEach {
Expand Down
Expand Up @@ -17,7 +17,6 @@ import org.jetbrains.annotations.NonNls

class AutoDevCommandRunner : GenericProgramRunner<RunnerSettings>() {
companion object {
private val log: Logger = logger<AutoDevCommandRunner>()
const val RUNNER_ID: String = "AutoDevCommandRunner"
}

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

@Suppress("UnstableApiUsage")
private fun showRunContent(result: ExecutionResult?, environment: ExecutionEnvironment): RunContentDescriptor? {
log.debug("showRunContent")

return result?.let {
ExecutionUiService.getInstance().showRunContent(it, environment)
}
Expand Down

0 comments on commit 0b976e0

Please sign in to comment.