Skip to content

Commit

Permalink
improve diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed May 20, 2022
1 parent 4cddb86 commit 6747d30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mtools/mlaunch/mlaunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def init(self):
('name', name)]))
except Exception as e:
if self.args['verbose']:
print('%s will retry in a moment.' % e)
print('Shard addition failed: %s; will retry in a moment.' % e)
continue

if res['ok']:
Expand All @@ -789,7 +789,7 @@ def init(self):
break
else:
if self.args['verbose']:
print(res + ' - will retry')
print('Shard addition failed: ' + res + ' - will retry')

time.sleep(1)

Expand Down Expand Up @@ -1836,7 +1836,7 @@ def _initiate_replset(self, port, name, maxwait=30):
self.config_docs[name]})
break
except OperationFailure as e:
print(str(e) + " - will retry")
print('Replica set initialization failed: %s - will retry' % e)
time.sleep(1)

if self.args['verbose']:
Expand Down

0 comments on commit 6747d30

Please sign in to comment.