Update log-file.c

fix bug 1236