Skip to content

Fix grpc_logger log level to respect the log level config #142

@mabdh

Description

@mabdh

Describe the bug
In our current setup, we use grpc_logrus interceptor to log the incoming request in our system. However grpc_logrus requires *logrus.Entry struct but our salt/log does not support that. We create a new logrus instead and assign it to interceptor. Changes to the package salt is discussed in this issue raystack/salt#29.

We don't set the log level for the logger interceptor so it will take the default value which is INFO. Therefore, regardless what log_level we set in compass config, logs are flooded with grpc logger. We need to make grpc logger to respect the log level set in compass config.

Expected behavior
grpc logger to respect the log level set in compass config.

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