This commit is contained in:
Kbz-8
2025-03-12 21:37:59 +01:00
parent 785fb0808e
commit d47f71804b
5 changed files with 31 additions and 9 deletions

View File

@@ -21,10 +21,8 @@ namespace mlx
{
using namespace std::literals;
#ifndef DEBUG
if(type == LogType::Debug)
return;
#endif
if(type == LogType::Debug && std::getenv("MLX_DEBUG_LOGS") == nullptr)
return;
std::string code_infos;
if((type == LogType::Error || type == LogType::FatalError) && !file.empty() && !function.empty())