Skip to content

Commit 97a9dbf

Browse files
Don't print mongodump stderr if the line is empty (date only)
1 parent 6c71455 commit 97a9dbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mongodb_consistent_backup/Backup/Mongodump/MongodumpThread.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from signal import signal, SIGINT, SIGTERM, SIG_IGN
88
from subprocess import Popen, PIPE
99

10+
from mongodb_consistent_backup.Common import is_datetime
1011
from mongodb_consistent_backup.Oplog import Oplog
1112

1213

@@ -52,6 +53,8 @@ def parse_mongodump_line(self, line):
5253
return None
5354
if "\t" in line:
5455
(date, line) = line.split("\t")
56+
elif is_datetime(line):
57+
return None
5558
return "%s:\t%s" % (self.uri, line)
5659
except:
5760
return None

0 commit comments

Comments
 (0)