This commit is contained in:
2025-03-12 21:37:59 +01:00
parent f478bb4a9e
commit 2798a43674
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())