feature: stellar dev API support stellar_new()/stellar_run()/stellar_free()/stellar_loopbreak()

This commit is contained in:
luwenpeng
2024-08-19 17:28:45 +08:00
parent 28f50b922b
commit 520eb085b8
7 changed files with 197 additions and 83 deletions

View File

@@ -321,11 +321,5 @@ void log_print(enum log_level level, const char *module, const char *fmt, ...)
{
nwrite = write(g_log_ctx->log_fd, buf, p - buf);
} while (nwrite == -1 && errno == EINTR);
// log level is LOG_STATE, also print to stderr
if (level == LOG_STATE)
{
fprintf(stderr, "%s", buf);
}
}
}