Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
1612e59a
Commit
1612e59a
authored
May 24, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 去掉日志
parent
64b655aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
httpd.py
coco/httpd.py
+1
-4
logger.py
coco/logger.py
+2
-2
No files found.
coco/httpd.py
View file @
1612e59a
...
@@ -167,13 +167,11 @@ class ProxyNamespace(BaseNamespace):
...
@@ -167,13 +167,11 @@ class ProxyNamespace(BaseNamespace):
secret
=
message
.
get
(
'secret'
,
None
)
secret
=
message
.
get
(
'secret'
,
None
)
room
=
self
.
new_room
()
room
=
self
.
new_room
()
self
.
emit
(
'room'
,
{
'room'
:
room
[
"id"
],
'secret'
:
secret
})
self
.
emit
(
'room'
,
{
'room'
:
room
[
"id"
],
'secret'
:
secret
})
self
.
socketio
.
sleep
(
0
)
if
not
token
or
not
secret
:
if
not
token
or
not
secret
:
logger
.
debug
(
"Token or secret is None
"
)
logger
.
debug
(
"Token or secret is None
: {}"
.
format
(
token
,
secret
)
)
self
.
emit
(
'data'
,
{
'data'
:
"
\n
Operation not permitted!"
,
self
.
emit
(
'data'
,
{
'data'
:
"
\n
Operation not permitted!"
,
'room'
:
room
[
"id"
]})
'room'
:
room
[
"id"
]})
self
.
emit
(
'disconnect'
)
self
.
emit
(
'disconnect'
)
self
.
socketio
.
sleep
(
0
)
return
None
return
None
info
=
app_service
.
get_token_asset
(
token
)
info
=
app_service
.
get_token_asset
(
token
)
...
@@ -183,7 +181,6 @@ class ProxyNamespace(BaseNamespace):
...
@@ -183,7 +181,6 @@ class ProxyNamespace(BaseNamespace):
self
.
emit
(
'data'
,
{
'data'
:
"
\n
Operation not permitted!"
,
self
.
emit
(
'data'
,
{
'data'
:
"
\n
Operation not permitted!"
,
'room'
:
room
[
"id"
]})
'room'
:
room
[
"id"
]})
self
.
emit
(
'disconnect'
)
self
.
emit
(
'disconnect'
)
self
.
socketio
.
sleep
(
0
)
return
None
return
None
user_id
=
info
.
get
(
'user'
,
None
)
user_id
=
info
.
get
(
'user'
,
None
)
...
...
coco/logger.py
View file @
1612e59a
...
@@ -49,8 +49,8 @@ def create_logger(app):
...
@@ -49,8 +49,8 @@ def create_logger(app):
'coco'
:
main_setting
,
'coco'
:
main_setting
,
'paramiko'
:
main_setting
,
'paramiko'
:
main_setting
,
'jms'
:
main_setting
,
'jms'
:
main_setting
,
'socket.io'
:
main_setting
,
#
'socket.io': main_setting,
'engineio'
:
main_setting
,
#
'engineio': main_setting,
}
}
)
)
...
...
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