Add incognito option to avoid manglign history & logs during tests

This commit is contained in:
Philippe Teuwen
2020-10-06 18:11:45 +02:00
parent 6fc6517ccb
commit 008c920db0
4 changed files with 32 additions and 14 deletions

View File

@@ -305,6 +305,9 @@ static void fPrintAndLog(FILE *stream, const char *fmt, ...) {
pthread_mutex_lock(&print_lock);
bool linefeed = true;
if (logging && session.incognito) {
logging = 0;
}
if ((g_printAndLog & PRINTANDLOG_LOG) && logging && !logfile) {
char *my_logfile_path = NULL;
char filename[40];