소스 검색

禁用打印日志。

jianfeng1.wang 2 년 전
부모
커밋
8e8597fde4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      TCLTools/TCLTools/TCLTools.cpp

+ 2 - 1
TCLTools/TCLTools/TCLTools.cpp

@@ -63,12 +63,13 @@ BOOL CTCLToolsApp::InitInstance()
 	// 例如修改为公司或组织名
 	SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
 
+#ifdef DEBUG
     log_init(LL_DEBUG, "mysql", ".");
     LOG_TRACE("%s %d %d", "较好的Log打印", 1, 150);
     LOG_NOTICE("%s %d %d", "较好的Log打印", 1, 1520);
     LOG_WARN("%s %d %d", "较好的Log打印111", 1, 410);
     LOG_ERROR("%s %d %d", "较好的Log打印222", 1, 310);
-
+#endif
 	CTCLToolsDlg dlg;
 	m_pMainWnd = &dlg;
 	INT_PTR nResponse = dlg.DoModal();