Skip to content

Commit

Permalink
处理canal client代码
Browse files Browse the repository at this point in the history
  • Loading branch information
liukelin committed Aug 29, 2016
1 parent 3a3b9ad commit d960f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified canal-client/bin/canal/client/CanalClientTest.class
Binary file not shown.
4 changes: 2 additions & 2 deletions canal-client/src/canal/client/CanalClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private static void printEntry(List<Entry> entrys) {
after = printColumn(rowData.getAfterColumnsList());
}

String row_data = header_str + row_str + "\"before\":" +before + ",\"after\":" + after + ",\"time\":\"" + timeStr +"\"}\r\n";
String row_data = header_str + row_str + "\"before\":" +before + ",\"after\":" + after + ",\"time\":\"" + timeStr +"\"}";
dataArray.add(row_data);
save_data_logs(row_data);
//System.out.println(row_data);
Expand Down Expand Up @@ -389,7 +389,7 @@ private static void save_data_logs(String row_data){
FileWriter writer;
try {
writer = new FileWriter(filename, true);
writer.write(row_data);
writer.write(row_data + "\r\n");
writer.flush();
writer.close();
} catch (IOException e) {
Expand Down

0 comments on commit d960f62

Please sign in to comment.