forked from p34709852/monkey
logging missing configuration
This commit is contained in:
parent
cc266329bd
commit
fa4c92c7f1
|
@ -123,8 +123,7 @@ class Configuration(object):
|
|||
|
||||
command_servers = [
|
||||
"russian-mail-brides.com:5000",
|
||||
"127.0.0.1:5000",
|
||||
"10.15.1.13:5000"
|
||||
"127.0.0.1:5000"
|
||||
]
|
||||
|
||||
serialize_config = False
|
||||
|
|
|
@ -52,7 +52,6 @@ def main():
|
|||
opts, monkey_args = arg_parser.parse_known_args(sys.argv[2:])
|
||||
if opts.config:
|
||||
config_file = opts.config
|
||||
print "Config file is: %s" % config_file
|
||||
if os.path.isfile(config_file):
|
||||
# using print because config can also change log locations
|
||||
print "Loading config from %s." % config_file
|
||||
|
@ -63,6 +62,8 @@ def main():
|
|||
print "Configuration loaded: %r" % WormConfiguration.as_dict()
|
||||
except ValueError as e:
|
||||
print "Error loading config, using default: %s" % e
|
||||
else:
|
||||
LOG.warning("Config file: %s wasn't found, using default" % config_file)
|
||||
|
||||
try:
|
||||
if MONKEY_ARG == monkey_mode:
|
||||
|
|
Loading…
Reference in New Issue