Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
ucollect
Commits
c28107c2
Verified
Commit
c28107c2
authored
Aug 29, 2017
by
Martin Petráček
Browse files
master: do not log other fake events then 'login'
parent
1f29459c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/master/fake_plugin.py
View file @
c28107c2
...
...
@@ -52,6 +52,9 @@ def store_logs(message, client, now, version):
message
=
message
[
10
:]
(
name
,
passwd
,
reason
,
method
,
host
,
uri
)
=
(
None
,
None
,
None
,
None
,
None
,
None
)
tp
=
types
[
type_idx
]
#to reduce database size, we now want only login events
if
tp
!=
'login'
:
continue
family
=
families
[
family_idx
]
rem_address
=
socket
.
inet_ntop
(
family
[
'opt'
],
message
[:
family
[
'len'
]])
message
=
message
[
family
[
'len'
]:]
...
...
Write
Preview
Supports
Markdown
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