Commit 2d1de130 authored by mercury233's avatar mercury233

disable debug log for score post

parent a3b612c1
......@@ -446,7 +446,7 @@ class Room
score_array=[]
for name, score of @scores
score_array.push { name: name, score: score }
log.info 'SCORE', score_array, @start_time
#log.info 'SCORE', score_array, @start_time
if score_array.length == 2
request.post { url : settings.modules.arena_mode.post_score , form : {
accesskey: settings.modules.arena_mode.accesskey,
......@@ -463,8 +463,8 @@ class Room
else
if response.statusCode != 204 and response.statusCode != 200
log.warn 'SCORE POST FAIL', response.statusCode, response.statusMessage, @name, body
else
log.info 'SCORE POST OK', response.statusCode, response.statusMessage, @name, body
#else
# log.info 'SCORE POST OK', response.statusCode, response.statusMessage, @name, body
return
if @player_datas.length and settings.modules.cloud_replay.enabled
replay_id = @cloud_replay_id
......
......@@ -607,7 +607,6 @@
score: score
});
}
log.info('SCORE', score_array, this.start_time);
if (score_array.length === 2) {
request.post({
url: settings.modules.arena_mode.post_score,
......@@ -628,8 +627,6 @@
} else {
if (response.statusCode !== 204 && response.statusCode !== 200) {
log.warn('SCORE POST FAIL', response.statusCode, response.statusMessage, _this.name, body);
} else {
log.info('SCORE POST OK', response.statusCode, response.statusMessage, _this.name, body);
}
}
};
......
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