You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More than 2/3 of tests+examples fail with current develop when logging is set to WARN level.
Why? To see warnings from depthai-core, the envvar (or api) has to be set to the warning level or worse. For example
set DEPTHAI_LEVEL=warn
The example testing cmake/harness recognizes as a test failure using regex "\\[warning\\];\\[error\\];\\[critical\\]"
But setting the env var itself causes a warning.
[2022-02-15 05:01:40.171] [warning] Environment 'DEPTHAI_LEVEL' set to 'warn'
But you can't see warnings unless you set it to warn (or worse).
But setting it to warn causes a warning...which causes the test to be marked failed.
This is a circular issue 😵 caused by commit bd11775
spdlog::warn("Environment '{}' set to '{}'", var, value);
}
I see some value for the developers of depthai-core itself. But highly recommend this logging be hidden away at the TRACE level of logging. This is something needed to be seen one or twice during debugging, not on every run.
The text was updated successfully, but these errors were encountered:
diablodale
added a commit
to diablodale/depthai-core
that referenced
this issue
Feb 15, 2022
More than 2/3 of tests+examples fail with current
develop
when logging is set toWARN
level.Why? To see warnings from depthai-core, the envvar (or api) has to be set to the warning level or worse. For example
The example testing cmake/harness recognizes as a test failure using regex
"\\[warning\\];\\[error\\];\\[critical\\]"
But setting the env var itself causes a warning.
But you can't see warnings unless you set it to warn (or worse).
But setting it to warn causes a warning...which causes the test to be marked failed.
This is a circular issue 😵 caused by commit bd11775
Setup
develop
7bbebaeRepro
DEPTHAI_LEVEL=warn
Result
Mass failure
Expected
All pass.
Notes
I see little value in this code for users of depthai-core. In addition, unexpected display of the values of environment variables worries me.
depthai-core/src/utility/Environment.cpp
Lines 24 to 27 in 7bbebae
I see some value for the developers of depthai-core itself. But highly recommend this logging be hidden away at the
TRACE
level of logging. This is something needed to be seen one or twice during debugging, not on every run.The text was updated successfully, but these errors were encountered: