Skip to content
Snippets Groups Projects
Commit d56604af authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

test: fix logging

parent 9bca25ab
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,10 @@ from PyPDF2 import PdfFileReader, PdfFileWriter
from .. import IFOS, load_budget
from ..io import load_hdf5
logging.basicConfig(
format='%(message)s',
level=os.getenv('LOG_LEVEL', logging.INFO))
try:
import inspiral_range
except ImportError:
......@@ -23,11 +27,6 @@ except ImportError:
inspiral_range = None
logging.basicConfig(
format='%(message)s',
level=os.getenv('LOG_LEVEL', logging.INFO))
TOLERANCE = 1e-6
CACHE_LIMIT = 5
......@@ -293,7 +292,7 @@ gwinc/test/cache/<SHA1>. Old caches are automatically pruned.""",
if not remote:
sys.exit("Could not resolve upstream remote name")
git_rev = '{}/master'.format(remote)
logging.info("presumed upstream git reference: {}".format(git_rev))
logging.info("git rev: {}".format(git_rev))
git_hash = git_rev_resolve_hash(git_rev)
if not git_hash:
sys.exit("Could not resolve reference, could not run test.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment