Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
vmj-qt
Commits
d0670a94
Commit
d0670a94
authored
Feb 14, 2020
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark illegal requests in MSRP logs
parent
4f266226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
logging.py
blink/logging.py
+2
-1
No files found.
blink/logging.py
View file @
d0670a94
...
...
@@ -218,8 +218,9 @@ class LogManager(object):
local_address
=
'
%
s:
%
d'
%
(
notification
.
data
.
local_address
.
host
,
notification
.
data
.
local_address
.
port
)
remote_address
=
'
%
s:
%
d'
%
(
notification
.
data
.
remote_address
.
host
,
notification
.
data
.
remote_address
.
port
)
message
=
'
%
s
%
s
%
s
\n
'
%
(
local_address
,
arrow
,
remote_address
)
+
notification
.
data
.
data
prefix
=
'[Illegal request!] '
if
notification
.
data
.
illegal
else
''
try
:
self
.
msrptrace_file
.
write
(
'
%
s [
%
s
%
d]:
%
s
\n
'
%
(
notification
.
datetime
,
self
.
name
,
self
.
pid
,
message
))
self
.
msrptrace_file
.
write
(
'
%
s [
%
s
%
d]:
%
s
%
s
\n
'
%
(
notification
.
datetime
,
self
.
name
,
self
.
pid
,
prefix
,
message
))
self
.
msrptrace_file
.
flush
()
except
Exception
:
pass
...
...
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