mirror of
https://github.com/pevans/erc-c.git
synced 2026-04-21 00:16:49 +00:00
Open log file rather than use stdout
This commit is contained in:
+6
-1
@@ -48,7 +48,12 @@ init(int argc, char **argv)
|
||||
|
||||
vm_di_set(VM_OUTPUT, stdout);
|
||||
|
||||
log_open(stdout);
|
||||
FILE *stream = fopen(LOG_FILENAME, "w");
|
||||
if (stream == NULL) {
|
||||
perror("Can't open log file");
|
||||
}
|
||||
|
||||
log_open(stream);
|
||||
|
||||
if (vm_screen_init() != OK) {
|
||||
fprintf(stderr, "Couldn't initialize video\n");
|
||||
|
||||
Reference in New Issue
Block a user