1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

dump log file as debug message to the screen

This commit is contained in:
Stefan Lankes 2017-02-18 22:21:53 +01:00
parent ecd4b69529
commit 79623cbaf4

View file

@ -223,13 +223,14 @@ static int is_hermit_available(void)
if (!file)
return 0;
PROXY_DEBUG("Open log file\n");
//PROXY_DEBUG("Open log file\n");
while(getline(&line, &n, file) > 0) {
if (strstr(line, "TCP server is listening.") != NULL) {
ret = 1;
break;
}
PROXY_DEBUG("%s\n", line);
}
fclose(file);