Skip to content

Commit

Permalink
Merge pull request Tendrl#633 from shtripat/1577228
Browse files Browse the repository at this point in the history
Changed to log the message as info if profile flag setting errors out
  • Loading branch information
r0h4n authored May 14, 2018
2 parents 2e5b1a9 + 3dcfde2 commit b395ea7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ def run(self):
).run()
if err != "" or rc != 0:
logger.log(
"error",
"info",
NS.publisher_id,
{
"message": "%s profiling failed for volume: %s" %
(action, volume.name)
"message": "%s profiling failed for volume: %s."
" Error: %s" %
(action, volume.name, err)
},
job_id=self.parameters["job_id"],
flow_id=self.parameters["flow_id"]
Expand All @@ -78,7 +79,7 @@ def run(self):
volume.save()
if len(failed_vols) > 0:
logger.log(
"error",
"info",
NS.publisher_id,
{
"message": "%s profiling failed for "
Expand Down

0 comments on commit b395ea7

Please sign in to comment.