diff --git a/lib/core/command.py b/lib/core/command.py index 9bc2e70..6a91ee7 100644 --- a/lib/core/command.py +++ b/lib/core/command.py @@ -25,7 +25,7 @@ class Command: ''' try: self.commandStart = dt.now() - self.log.d("calling command " + str(self.command) + " at " + str(self.commandStart)) + self.log.i("calling command " + str(self.command) + " at " + str(self.commandStart)) #self.output=sp.check_output(self.command.split()) process = Popen(self.command, stdout=sp.PIPE, stderr=sp.PIPE, shell=True) self.output, self.error = process.communicate() diff --git a/lib/core/job.py b/lib/core/job.py index e14ab19..837b22b 100644 --- a/lib/core/job.py +++ b/lib/core/job.py @@ -23,7 +23,7 @@ class JobInfo: self.jobs = [] def __str__(self): - return self.name + return "JobInfo " + str(self.name) def setLogger(self, log): self.log = log @@ -49,8 +49,8 @@ class JobInfo: cmd=Command(hs.service.command, self.log) cmd.call() self.log.d(cmd.getAllOutput()) - except Error: - self.log.d(Error) + except Exception: + self.log.d(Exception) #must find real service command stored in hosts...