Commit 725e9344 authored by Chunchi Che's avatar Chunchi Che

update log in ygopro-server.js

parent d250d413
Pipeline #18614 passed with stages
in 7 minutes and 45 seconds
......@@ -82,6 +82,8 @@
Q = require("q");
const logPrefix = "<neos>";
//heapdump = require 'heapdump'
checkFileExists = async(path) => {
var e;
......@@ -1792,7 +1794,7 @@
const lines = data.split('\n');
for (let line of lines) {
if(line.length >= 2) {
log.info('process data:' + line);
log.info('process data:', line);
}
}
});
......@@ -2539,6 +2541,7 @@
// 客户端到服务端(ctos)协议分析
client.pre_establish_buffers = new Array();
dataHandler = async function(ctos_buffer) {
log.info(logPrefix, `client_name=${client.name}`, "ctos_buffer:", ctos_buffer);
var bad_ip_count, buffer, ctos_filter, handle_data, j, l, len, len1, preconnect, ref, ref1, room;
if (client.is_post_watcher) {
room = ROOM_all[client.rid];
......@@ -2614,6 +2617,8 @@
}
// 服务端到客户端(stoc)
server.on('data', async function(stoc_buffer) {
log.info(logPrefix, `client_name=${server.client.name}`, "stoc buffer:", stoc_buffer);
var buffer, handle_data, j, len, ref;
handle_data = (await ygopro.helper.handleBuffer(stoc_buffer, "STOC", null, {
client: server.client,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment