Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
2d1de130
Commit
2d1de130
authored
Mar 13, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable debug log for score post
parent
a3b612c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
ygopro-server.coffee
ygopro-server.coffee
+3
-3
ygopro-server.js
ygopro-server.js
+0
-3
No files found.
ygopro-server.coffee
View file @
2d1de130
...
...
@@ -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
...
...
ygopro-server.js
View file @
2d1de130
...
...
@@ -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
);
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment