add PRINT_NATIVE_ERRORS env variable

This commit is contained in:
Ruben Fiszel
2025-02-22 11:06:42 +01:00
parent 5abc825e48
commit e89b2feeac
+3
View File
@@ -967,6 +967,9 @@ fn write_error_expr(expr: &str, uuid: &Uuid) {
}
};
if std::env::var("PRINT_NATIVE_ERRORS").is_ok() {
tracing::info!("native error for job {uuid}: {expr}");
}
if dir_entries >= 100 {
tracing::info!("Too many error files in {ERROR_DIR}, skipping write");
return;