Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
cloudooo
Commits
66e7ad71
Commit
66e7ad71
authored
May 24, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve logging
parent
467b6b86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
cloudooo/handler/ooo/application/application.py
cloudooo/handler/ooo/application/application.py
+24
-24
No files found.
cloudooo/handler/ooo/application/application.py
View file @
66e7ad71
...
...
@@ -46,9 +46,10 @@ class Application(object):
self
.
getAddress
()[
-
1
],
self
.
pid
()))
def
stop
Process
(
self
,
process_pid
):
"""Stop the process"""
def
stop
(
self
):
if
hasattr
(
self
,
'process'
):
error
=
False
process_pid
=
self
.
process
.
pid
logger
.
debug
(
"Stop Pid - %s"
,
process_pid
)
returncode
=
None
try
:
...
...
@@ -68,14 +69,13 @@ class Application(object):
pass
except
TimeoutExpired
:
logger
.
error
(
"Process %s survived SIGKILL after %s"
,
process_pid
,
self
.
timeout
)
if
returncode
is
None
:
returncode
=
self
.
process
.
returncode
if
error
and
returncode
:
logger
.
error
(
"Process %s cmdline: %s ended with returncode %s"
,
process_pid
,
cmdline
,
returncode
)
elif
returncode
!=
0
:
logger
.
debug
(
"Process %s ended with returncode %s"
,
process_pid
,
returncode
)
def
stop
(
self
):
if
hasattr
(
self
,
'process'
):
self
.
stopProcess
(
self
.
process
.
pid
)
delattr
(
self
,
"process"
)
def
loadSettings
(
self
,
hostname
,
port
,
path_run_dir
,
**
kwargs
):
...
...
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