In this example when I'm stopping the process in the middle the logs will stop but the loop will run to the end, the full 10 seconds and the process will exit successfully.
If I change from log::info! to spdlog::info! or from log::info! to println! or adding .is_test(true) to log init, it works as expected, exits imidietly with fail code.
If I run in regular Clion run on my machine compiler log works fine the same as the other loggers but I would expect it to work the same in my remote environment.
Is there a reason for this behavior?
What is the .is_test(true) flag?
I'm using Clion developing in a remote environment. When I'm stoping the process from the clion stop the logs stops but the process not.
In this example when I'm stopping the process in the middle the logs will stop but the loop will run to the end, the full 10 seconds and the process will exit successfully.
If I change from
log::info!
tospdlog::info!
or fromlog::info!
toprintln!
or adding.is_test(true)
to log init, it works as expected, exits imidietly with fail code.If I run in regular Clion run on my machine compiler
log
works fine the same as the other loggers but I would expect it to work the same in my remote environment.Is there a reason for this behavior? What is the
.is_test(true)
flag?