Skip to content

Conversation

@martint
Copy link
Member

@martint martint commented Dec 2, 2025

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Dec 2, 2025
Comment on lines +161 to +163
logging.setLevel("io.trino.connector.CatalogStoreManager", Level.ERROR);
logging.setLevel("io.trino.server.PluginManager", Level.ERROR);
logging.setLevel("io.trino.memory.RemoteNodeMemory", Level.ERROR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory we could put ERROR as the default level, but that may make reproducing errors harder. Also, it opens a possibility for the code to work in tests, but not work under defaults settings (yes, i know no code semantics should depend on log levels being enabled).

So for every such special measure we should understand -- and document -- why we're doing that. Please add a line of comment for each of these perhaps exemplifying what's too verbose (at the moment of writing).

BTW sometimes we can fix the problem at source. For instance, airlift configuration logs all configured values, but afaict it's disabled in tests.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, why not INFO -> WARN, when INFO is too verbose for tests?

static {
Logging logging = Logging.initialize();
logging.setLevel("org.hibernate.validator.internal.util.Version", Level.ERROR);
logging.setLevel("Bootstrap", Level.ERROR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is Bootstrap?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default logger used for unnamed io.airlift.bootstrap.Bootstrap instances

{
static {
Logging logging = Logging.initialize();
logging.setLevel("io.trino.bootstrap.exchange", Level.ERROR);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logging.setLevel("io.trino.bootstrap.exchange", Level.ERROR);
// Airlift configuration logs all the properties
logging.setLevel("io.trino.bootstrap.exchange.filesystem", Level.WARN);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be much more robust to have io.airlift.bootstrap.Bootstrap#quiet initialize from env.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants