Commit d82383ef authored by Julien Muchembled's avatar Julien Muchembled

Raise verbosity of 'simple' script

That seems too verbose now but it was difficult to know the ports of nodes
when only warnings were output.
parent 7e89973c
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import inspect, random, signal, sys import inspect, random, signal, sys
from logging import getLogger, INFO
from optparse import OptionParser from optparse import OptionParser
from neo.lib import logging from neo.lib import logging
from neo.tests import functional from neo.tests import functional
...@@ -44,6 +45,7 @@ def main(): ...@@ -44,6 +45,7 @@ def main():
options, args = parser.parse_args() options, args = parser.parse_args()
if options.seed: if options.seed:
functional.random = random.Random(options.seed) functional.random = random.Random(options.seed)
getLogger().setLevel(INFO)
cluster = functional.NEOCluster(args, **{x: getattr(options, x) cluster = functional.NEOCluster(args, **{x: getattr(options, x)
for x, _ in option_list}) for x, _ in option_list})
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment