Skip to content

Ktlint 0.48.0 does not respect --log-level #1749

@paul-dingemans

Description

@paul-dingemans

In ktlint 0.48.0 it seems --log-level is not respected:

$ echo "class Foo {
fun foo() {}
}" | ktlint --log-level=fatal -F --stdin 2>/dev/null
08:48:35.907 [main] INFO com.pinterest.ktlint.internal.KtlintCommandLine - Enable default patterns [**/*.kt, **/*.kts]
class Foo {
    fun foo() {}
}

As a workaround I'm using a similar grep trick to the above, but if would be nice if we could suppress this and/or log to stderr.

Originally posted by @alex-shinn in #1652 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions