Browse Source

禁用打印日志。

jianfeng1.wang 2 years ago
parent
commit
8e8597fde4
1 changed files with 2 additions and 1 deletions
  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();