sb: Provide a default log if none is provided.

This commit is contained in:
Chris Johns 2014-10-31 15:10:31 +11:00
parent 5fdd664b18
commit 85b46b85f1

View File

@ -21,6 +21,7 @@
# Determine the defaults and load the specific file.
#
import datetime
import glob
import pprint
import re
@ -458,7 +459,7 @@ class command_line:
def logfiles(self):
if 'log' in self.opts and self.opts['log'] is not None:
return self.opts['log'].split(',')
return ['stdout']
return ['rsb-log-%s.txt' % (datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))]
def urls(self):
if self.opts['url'] is not None: