Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.core
Commits
ec54cb2f
Commit
ec54cb2f
authored
May 02, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide a logger name for all commands
parent
e2ca58dc
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
14 deletions
+20
-14
slapos/cli/bang.py
slapos/cli/bang.py
+1
-1
slapos/cli/cache.py
slapos/cli/cache.py
+1
-1
slapos/cli/console.py
slapos/cli/console.py
+1
-1
slapos/cli/entry.py
slapos/cli/entry.py
+4
-1
slapos/cli/register.py
slapos/cli/register.py
+1
-1
slapos/cli/remove.py
slapos/cli/remove.py
+1
-1
slapos/cli/request.py
slapos/cli/request.py
+1
-1
slapos/cli/slapgrid.py
slapos/cli/slapgrid.py
+7
-4
slapos/cli/supervisorctl.py
slapos/cli/supervisorctl.py
+1
-1
slapos/cli/supervisord.py
slapos/cli/supervisord.py
+1
-1
slapos/cli/supply.py
slapos/cli/supply.py
+1
-1
No files found.
slapos/cli/bang.py
View file @
ec54cb2f
...
...
@@ -11,7 +11,7 @@ class BangCommand(ConfigCommand):
request update on all partitions
"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'bang'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
BangCommand
,
self
).
get_parser
(
prog_name
)
...
...
slapos/cli/cache.py
View file @
ec54cb2f
...
...
@@ -17,7 +17,7 @@ class CacheLookupCommand(ConfigCommand):
with the OS you are currently running.
"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'cache-lookup'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
CacheLookupCommand
,
self
).
get_parser
(
prog_name
)
...
...
slapos/cli/console.py
View file @
ec54cb2f
...
...
@@ -22,7 +22,7 @@ class ConsoleCommand(ClientConfigCommand):
>>> request(kvm, "myuniquekvm").getConnectionParameter("url")
"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'console'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
ConsoleCommand
,
self
).
get_parser
(
prog_name
)
...
...
slapos/cli/entry.py
View file @
ec54cb2f
...
...
@@ -49,7 +49,10 @@ class SlapOSApp(cliff.app.App):
# etc.
#
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'slapos'
)
CONSOLE_MESSAGE_FORMAT
=
'%(message)s'
LOG_FILE_MESSAGE_FORMAT
=
'[%(asctime)s] %(levelname)-8s %(name)s %(message)s'
def
__init__
(
self
):
super
(
SlapOSApp
,
self
).
__init__
(
...
...
slapos/cli/register.py
View file @
ec54cb2f
...
...
@@ -12,7 +12,7 @@ class RegisterCommand(Command):
register a node in the SlapOS cloud
"""
log
=
logging
.
getLogger
(
'
R
egister'
)
log
=
logging
.
getLogger
(
'
r
egister'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
RegisterCommand
,
self
).
get_parser
(
prog_name
)
...
...
slapos/cli/remove.py
View file @
ec54cb2f
...
...
@@ -11,7 +11,7 @@ class RemoveCommand(ClientConfigCommand):
remove a Software from a node
"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'remove'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
RemoveCommand
,
self
).
get_parser
(
prog_name
)
...
...
slapos/cli/request.py
View file @
ec54cb2f
...
...
@@ -25,7 +25,7 @@ class RequestCommand(ClientConfigCommand):
request an Instance
"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'request'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
RequestCommand
,
self
).
get_parser
(
prog_name
)
...
...
slapos/cli/slapgrid.py
View file @
ec54cb2f
...
...
@@ -11,14 +11,11 @@ from slapos.grid.slapgrid import (merged_options, check_missing_parameters, chec
class
SlapgridCommand
(
ConfigCommand
):
log
=
logging
.
getLogger
(
__name__
)
log
=
None
method_name
=
NotImplemented
default_pidfile
=
NotImplemented
CONSOLE_MESSAGE_FORMAT
=
'%(message)s'
LOG_FILE_MESSAGE_FORMAT
=
'[%(asctime)s] %(levelname)-8s %(name)s %(message)s'
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
SlapgridCommand
,
self
).
get_parser
(
prog_name
)
...
...
@@ -88,6 +85,8 @@ class SlapgridCommand(ConfigCommand):
class
SoftwareCommand
(
SlapgridCommand
):
"""hook for entry point to process Software Releases"""
log
=
logging
.
getLogger
(
'software'
)
method_name
=
'processSoftwareReleaseList'
default_pidfile
=
'/opt/slapos/slapgrid-sr.pid'
...
...
@@ -103,6 +102,8 @@ class SoftwareCommand(SlapgridCommand):
class
InstanceCommand
(
SlapgridCommand
):
"""hook for entry point to process Computer Partitions"""
log
=
logging
.
getLogger
(
'instance'
)
method_name
=
'processComputerPartitionList'
default_pidfile
=
'/opt/slapos/slapgrid-cp.pid'
...
...
@@ -118,5 +119,7 @@ class InstanceCommand(SlapgridCommand):
class
ReportCommand
(
SlapgridCommand
):
"""hook for entry point to process Usage Reports"""
log
=
logging
.
getLogger
(
'report'
)
method_name
=
'agregateAndSendUsage'
default_pidfile
=
'/opt/slapos/slapgrid-ur.pid'
slapos/cli/supervisorctl.py
View file @
ec54cb2f
...
...
@@ -15,7 +15,7 @@ class SupervisorctlCommand(ConfigCommand):
manage supervisor processes
"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'supervisorctl'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
SupervisorctlCommand
,
self
).
get_parser
(
prog_name
)
...
...
slapos/cli/supervisord.py
View file @
ec54cb2f
...
...
@@ -10,7 +10,7 @@ from slapos.grid.svcbackend import launchSupervisord
class
SupervisordCommand
(
ConfigCommand
):
"""run the supervisor daemon"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'supervisord'
)
def
take_action
(
self
,
args
):
configp
=
self
.
fetch_config
(
args
)
...
...
slapos/cli/supply.py
View file @
ec54cb2f
...
...
@@ -11,7 +11,7 @@ class SupplyCommand(ClientConfigCommand):
supply a Software to a node
"""
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
'supply'
)
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
SupplyCommand
,
self
).
get_parser
(
prog_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