Save logs with information and reorganize notebook

milestone_5_without_improvements-logs
chortas 3 years ago
parent 4e338ab748
commit 0f8cbc686b

File diff suppressed because it is too large Load Diff

@ -22,6 +22,7 @@
#include <stdlib.h>
#include "log.h"
#include <string.h>
#define MAX_CALLBACKS 32
@ -149,6 +150,9 @@ void log_log(int level, const char *file, int line, const char *fmt, ...) {
char* env_var = getenv("ENV");
if (strcmp("false", env_var) == 0) return;
char* substr = strstr(fmt, "MEM");
if (strcmp("analysis", env_var) == 0 && substr == NULL) return;
lock();
if (!L.quiet && level >= L.level) {

@ -1 +1,2 @@
ENV=true python3 test.py $1 2>&1 | tee log_$1.txt
python3 setup.py install --user
ENV=analysis python3 test.py $1 2>&1 | split -l 5000000 - log_$1-
Loading…
Cancel
Save