Skip to content

Cannot change log level #112

Closed
Closed
@drammock

Description

@drammock

Description

This extension generates more than 100 lines of build output in my terminal, which makes it harder to find other output that I'm more interested in (e.g. sphinx warnings). I want to set the log level somehow, but can't figure out how. I have placed a jupyterlite_config.json in the same directory as conf.py and it's getting loaded:

[LiteBuildApp] Loaded config file: /opt/pydata-sphinx-theme/docs/jupyterlite_config.json

Here's the content of that file:

{
    "LiteBuildConfig": {
        "Application": {
            "log_level": 40
        }
    }
}

Inspired by this I also tried

{
    "LiteBuildConfig": {
        "log_level": 40
    }
}

but that gives a warning:

[LiteBuildApp] WARNING | Config option `log_level` not recognized by `LiteManager`.

Any guidance on how to actually suppress the terminal output of LiteBuildApp?

Reproduce

Sorry this is a complicated reproducer, I haven't had time to boil it down:

Expected behavior

the 100+ lines of output will be suppressed

Context

$ mamba list jupyterlite
# packages in environment at /opt/mambaforge/envs/pst:
#
# Name                    Version                   Build  Channel
jupyterlite-core          0.1.3              pyhd8ed1ab_0    conda-forge
jupyterlite-sphinx        0.9.3              pyhd8ed1ab_0    conda-forge
$ uname -a
Linux agelaius 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Browser: N/A, this is about terminal output during build

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions