Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
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
OpnSense
Commits
09f5def8
Commit
09f5def8
authored
Feb 21, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional logging
parent
f09c1927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
processhandler.py
src/opnsense/service/modules/processhandler.py
+8
-1
No files found.
src/opnsense/service/modules/processhandler.py
View file @
09f5def8
...
...
@@ -140,6 +140,8 @@ class HandlerClient(threading.Thread):
"""
result
=
''
exec_command
=
''
exec_action
=
''
exec_params
=
''
try
:
# receive command, maximum data length is 4k... longer messages will be truncated
data
=
self
.
connection
.
recv
(
4096
)
...
...
@@ -170,7 +172,12 @@ class HandlerClient(threading.Thread):
self
.
connection
.
sendall
(
'
%
s
\n
'
%
result
)
except
:
print
(
traceback
.
format_exc
())
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'unable to sendback response [
%
s] for [
%
s], message was
%
s'
%
(
result
,
exec_command
,
traceback
.
format_exc
()))
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'unable to sendback response [
%
s] for [
%
s][
%
s][
%
s], message was
%
s'
%
(
result
,
exec_command
,
exec_action
,
exec_params
,
traceback
.
format_exc
()))
finally
:
self
.
connection
.
close
()
...
...
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