Browse Source

add station connect info log

zhengwei 8 years ago
parent
commit
baa07aff94
1 changed files with 2 additions and 0 deletions
  1. 2 0
      YAServerDlg.cpp

+ 2 - 0
YAServerDlg.cpp

@@ -5794,6 +5794,8 @@ 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",
+		strvalue, readerid, is_closed, rt);
 }
 
 void CYAServerDlg::show_log( LPCTSTR szlog, BOOL bSave )