| 77 | } |
| 78 | |
| 79 | void acl_msg_open2(ACL_VSTREAM *fp, const char *info_pre) |
| 80 | { |
| 81 | if (fp == NULL || info_pre == NULL || *info_pre == 0) |
| 82 | return; |
| 83 | |
| 84 | if (__open_fn != NULL) { |
| 85 | int ret = __open_fn(ACL_VSTREAM_PATH(fp), __msg_ctx); |
| 86 | /* if return < 0, use the default log */ |
| 87 | if (ret < 0) { |
| 88 | __open_fn = NULL; |
| 89 | __close_fn = NULL; |
| 90 | __write_fn = NULL; |
| 91 | __msg_ctx = NULL; |
| 92 | acl_log_fp_set(fp, info_pre); |
| 93 | } |
| 94 | } else |
| 95 | acl_log_fp_set(fp, info_pre); |
| 96 | |
| 97 | __log_open_flag = 1; |
| 98 | } |
| 99 | |
| 100 | void acl_msg_open(const char *log_file, const char *info_pre) |
| 101 | { |
no test coverage detected
searching dependent graphs…