MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / host_log_sink

Function host_log_sink

src/daemon/host.c:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110static _Noreturn void host_force_terminate(const char *component);
111
112static void host_log_sink(const char *line) {
113 cbm_ui_log_append(line);
114 if (!g_host_log_file || !g_host_log_mutex_initialized) {
115 return;
116 }
117 cbm_mutex_lock(&g_host_log_mutex);
118 (void)fprintf(g_host_log_file, "%s\n", line ? line : "");
119 (void)fflush(g_host_log_file);
120 cbm_mutex_unlock(&g_host_log_mutex);
121}
122
123static bool host_log_open(char conflict_log_out[HOST_PATH_CAP]) {
124 const char *cache = cbm_resolve_cache_dir();

Callers

nothing calls this directly

Calls 3

cbm_ui_log_appendFunction · 0.85
cbm_mutex_lockFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected