Don't pass a custom logger anymore

We already use the hostname in command execution calls

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
This commit is contained in:
Zack Cerza 2014-05-09 15:50:22 -05:00
parent 22b51be46c
commit 0465bdbb13

View File

@ -1,5 +1,5 @@
"""
Clock synchronizer
Clock synchronizer
"""
import logging
import contextlib
@ -53,7 +53,6 @@ def task(ctx, config):
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),
)
try:
@ -67,7 +66,6 @@ def task(ctx, config):
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),
)
@ -75,7 +73,7 @@ def task(ctx, config):
def check(ctx, config):
"""
Run ntpdc at the start and the end of the task.
:param ctx: Context
:param config: Configuration
"""
@ -86,7 +84,6 @@ def check(ctx, config):
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),
)
try:
@ -100,5 +97,4 @@ def check(ctx, config):
'PATH=/usr/bin:/usr/sbin',
'ntpdc', '-p',
],
logger=log.getChild(rem.name),
)