| 41 |
fp_common_log = fopen(path_common_log, "a"); |
fp_common_log = fopen(path_common_log, "a"); |
| 42 |
if (fp_common_log == NULL) |
if (fp_common_log == NULL) |
| 43 |
{ |
{ |
| 44 |
perror("log_begin(common_log) failed\n"); |
fprintf(stderr, "fopen(%s) error\n", path_common_log); |
| 45 |
return -1; |
return -1; |
| 46 |
} |
} |
| 47 |
|
|
| 48 |
fp_error_log = fopen(path_error_log, "a"); |
fp_error_log = fopen(path_error_log, "a"); |
| 49 |
if (fp_error_log == NULL) |
if (fp_error_log == NULL) |
| 50 |
{ |
{ |
| 51 |
perror("log_begin(error_log) failed\n"); |
fprintf(stderr, "fopen(%s) error\n", path_error_log); |
| 52 |
return -2; |
return -2; |
| 53 |
} |
} |
| 54 |
|
|