MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_msg_open2

Function acl_msg_open2

lib_acl/src/stdlib/acl_msg.c:79–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void 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
100void acl_msg_open(const char *log_file, const char *info_pre)
101{

Callers 4

plugin_initFunction · 0.85
plugin_initFunction · 0.85
http_plugin_initFunction · 0.85
module_service_initFunction · 0.85

Calls 1

acl_log_fp_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…