Skip to content

Commit afa63fe

Browse files
Merge pull request #148 from timvaillancourt/review_fixes_1.0.2
Review fixes 1.0.2
2 parents 10f4d01 + 9e27e4c commit afa63fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mongodb_consistent_backup/Common/Config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def makeParser(self):
5151
parser.add_argument("-v", "--verbose", dest="verbose", help="Verbose output", default=False, action="store_true")
5252
parser.add_argument("-H", "--host", dest="host", help="MongoDB Hostname, IP address or '<replset>/<host:port>,<host:port>,..' URI (default: localhost)", default="localhost", type=str)
5353
parser.add_argument("-P", "--port", dest="port", help="MongoDB Port (default: 27017)", default=27017, type=int)
54-
parser.add_argument("-u", "--username", dest="username", help="MongoDB Authentication Username (for optional auth)", type=str)
54+
parser.add_argument("-u", "--user", "--username", dest="username", help="MongoDB Authentication Username (for optional auth)", type=str)
5555
parser.add_argument("-p", "--password", dest="password", help="MongoDB Authentication Password (for optional auth)", type=str)
5656
parser.add_argument("-a", "--authdb", dest="authdb", help="MongoDB Auth Database (for optional auth - default: admin)", default='admin', type=str)
5757
parser.add_argument("-L", "--log-dir", dest="log_dir", help="Path to write log files to (default: disabled)", default='', type=str)

mongodb_consistent_backup/Logger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(self, config, backup_time):
1818
if self.config.log_dir is not '':
1919
self.do_file_log = True
2020
if not os.path.isdir(self.config.log_dir):
21+
print "WARNING: Creating logging directory: %s" % self.config.log_dir
2122
os.mkdir(self.config.log_dir)
2223

2324
self.log_format = '[%(asctime)s] [%(levelname)s] [%(processName)s] [%(module)s:%(funcName)s:%(lineno)d] %(message)s'

0 commit comments

Comments
 (0)