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:
parent
ecd4b69529
commit
79623cbaf4
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue