Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
4f350367
Commit
4f350367
authored
Nov 10, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Most verbosity server messages at loading and closing services
parent
8f69c646
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
server.py
settingsd/server.py
+4
-1
No files found.
settingsd/server.py
View file @
4f350367
...
...
@@ -103,17 +103,19 @@ class Server(object) :
def
initServices
(
self
)
:
for
service_name
in
self
.
__services_dict
.
keys
()
:
if
config
.
value
(
service_name
,
"enabled"
)
:
logger
.
verbose
(
"Enabling service
\"
%
s
\"
..."
%
(
service_name
))
try
:
self
.
__services_dict
[
service_name
][
"service"
]
=
self
.
__services_dict
[
service_name
][
"service_class"
]()
self
.
__services_dict
[
service_name
][
"service"
]
.
initService
()
except
:
logger
.
error
(
"Cannot initialize service
\"
%
s
\"
"
%
(
service_name
))
logger
.
attachException
()
logger
.
verbose
(
"Initialized service:
%
s"
%
(
service_name
))
logger
.
info
(
"Initialized service:
%
s"
%
(
service_name
))
def
closeServices
(
self
)
:
for
service_name
in
self
.
__services_dict
.
keys
()
:
if
self
.
__services_dict
[
service_name
][
"service"
]
!=
None
:
logger
.
verbose
(
"Disabling service
\"
%
s
\"
..."
%
(
service_name
))
try
:
self
.
__services_dict
[
service_name
][
"service"
]
.
closeService
()
del
self
.
__services_dict
[
service_name
][
"service"
]
...
...
@@ -121,4 +123,5 @@ class Server(object) :
logger
.
error
(
"Cannot close service
\"
%
s
\"
"
%
(
service_name
))
logger
.
attachException
()
self
.
__services_dict
[
service_name
][
"service"
]
=
None
logger
.
info
(
"Closed service:
%
s"
%
(
service_name
))
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