소스 검색

Z991239-2154 #comment fix: 日志字符串乱码问题

陈礼鹏80274480 4 년 전
부모
커밋
6cb134f22c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Module/mod_interactivelog/mod_interactivelog.cpp

+ 2 - 2
Module/mod_interactivelog/mod_interactivelog.cpp

@@ -214,7 +214,7 @@ public:
 		CSimpleStringA customer_id = CSimpleStringW2A(ctx->Info.customer_id);
 		ErrorCodeEnum errCode;
 		errCode = GetFunction()->SetSysVar("CustomerID",customer_id);
-		Dbg("set CustomerID to %s",customer_id);
+		Dbg("set CustomerID to %s",customer_id.GetData());
 		if (errCode != Error_Succeed)
 		{
 			Dbg("set CustomerID failed (%d).",errCode);
@@ -326,7 +326,7 @@ public:
 
 		CSimpleStringA strTime = strtimebuffer;
 		m_strSessionCount = CSimpleStringA::Format("%d",ctx->Info.session_count);
-		Dbg("SessionCount = %s",m_strSessionCount);
+		Dbg("SessionCount = %s",m_strSessionCount.GetData());
 #ifdef RVC_OS_WIN
 		CSimpleStringA filename = strTime + "_" + m_strSessionCount + "_" + session_id;
 		bizlog_session_begin(m_log, session_id, filename);