cube-js / cube-js/cube

Log Level for CUBEJS_LOG_LEVEL is not working.

Open
#2,856 1 comment 0 reactions 1 assignee Claimed by @igorlukanin View on GitHub
backend:server
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
I am trying to get only errors by setting CUBEJS_LOG_LEVEL=error but thats not working.

**To Reproduce**
Steps to reproduce the behavior:
1. Setup Cube JS basic app from CubeJS CLI
2. Set CUBEJS_DEV_MODE=false
3. Set CUBEJS_LOG_LEVEL=trace
4. Add this in cube.js file
`module.exports = {
logger: (msg) => {
console.log(msg);
}`
5. Try to run /cubejs-api/v1/load api end point. See the output in console

`REST API Request
Load Request
Compiling schema
Load Request SQL
Query started
Found cache entry
Renewing existing key
Using cache for
Found cache entry
Waiting for renew
Added to queue
Found cache entry
Using cache for
Query completed
Load Request Success
Performing query
Waiting for query
Waiting for query
Skip processing
Skipping free processing lock
Executing SQL
Performing query completed`

6. Now, try the same with CUBEJS_LOG_LEVEL=error. You will get the same output.

**Expected behavior**
I expected only errors when CUBEJS_LOG_LEVEL=error.

**Screenshot**
![image](https://user-images.githubusercontent.com/56352237/120066263-77f1e880-c093-11eb-84cb-016c604d953b.png)

**Version:**
0.26.64

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.