Skip to content

Commit

Permalink
ceph-disk: LOG.info instead of print
Browse files Browse the repository at this point in the history
When a non fatal error happens with parted, use LOG.info to display it
instead of print.

Signed-off-by: Loic Dachary <[email protected]>
  • Loading branch information
ldachary committed Dec 13, 2014
1 parent e0f052a commit b6401c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ceph-disk
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ def get_free_partition_index(dev):
],
)
except subprocess.CalledProcessError as e:
print 'cannot read partition index; assume it isn\'t present\n (Error: %s)' % e
LOG.info('cannot read partition index; assume it isn\'t present\n (Error: %s)' % e)
return 1

if not lines:
Expand Down

0 comments on commit b6401c1

Please sign in to comment.