From ff053e3e2cad06804f852e8b46275865f4e85b0c Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 27 Nov 2019 11:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B0=83=E8=AF=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_send_log.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index 217da6a..44b8360 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -147,7 +147,13 @@ int TLD_append_streaminfo(struct tsg_log_instance_t *instance, struct TLD_handle struct tsg_log_instance_t *_instance=instance; if(_instance==NULL || _handle==NULL || a_stream==NULL) - { + { + MESA_handle_runtime_log(_instance->logger, + ((a_stream==NULL) ? RLOG_LV_DEBUG: RLOG_LV_FATAL), + "TLD_APPEND_STREAM", + "instance==NULL || TLD_handle==NULL || addr: %s", + ((a_stream==NULL) ? "NULL": (printaddr(&a_stream->addr, a_stream->threadnum))) + ); return -1; }