Ver Fonte

add station connect info.

zhengwei há 8 anos atrás
pai
commit
73948e0076
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      SyncTime/SyncManager.cpp
  2. 1 1
      YAServerDlg.cpp

+ 2 - 2
SyncTime/SyncManager.cpp

@@ -146,8 +146,8 @@ bool HostServer::SyncManager::updateSync(unsigned long long rootIdCode, int idx,
 			timeDelay += TIME_MAX;
 		}
         _historySync[rootIdCode][idx_synctime].HistSync[localIdCode].TimeDelay(timeDelay);
-		debug_print_syslog(0, "Delay info, syncnum:%d, station id: 0x%x, timeDelay:%I64u", 
-		                 SyncNum, localIdCode, timeDelay);
+		//debug_print_syslog(0, "Delay info, syncnum:%d, station id: 0x%x, timeDelay:%I64u", 
+		//                 SyncNum, localIdCode, timeDelay);
 		LOCATION_SYSTEM_BRANCH(LOCATION_SYSTEM_BRANCH_69);
         return true;
     }

+ 1 - 1
YAServerDlg.cpp

@@ -5794,7 +5794,7 @@ void CYAServerDlg::AddItem( CString strvalue, int readerid, BOOL is_closed, DEVI
 	m_listctrl_reader.SetItemText(nRow, 1, strvalue);
 	m_listctrl_reader.SetItemText(nRow, 2, is_closed ? _T("中断"): _T("已连接"));
 	m_listctrl_reader.SetItemText(nRow, 3, (rt == DEVICE_TYPE::DT_CARD_READER)? _T("读卡分站"): _T("通信分站"));
-	debug_print_syslog(0, "Station connect info: ip:%s, read_id:%d, is_closed:%d, device_type:%d",
+	debug_print_syslog(0, "Station connect info: ip:%S, read_id:%d, is_closed:%d, device_type:%d",
 		strvalue, readerid, is_closed, rt);
 }