Commit dc8b443c authored by Ian Dennis Miller's avatar Ian Dennis Miller

arg logging

parent 0e0add67
Pipeline #258 passed with stage
in 14 seconds
......@@ -8,7 +8,7 @@ from rdflib.namespace import RDF
from . import make_uri
from .transformation import Transformation
from .query import Query
from .downloader import Downloader
from .downloader import Downloader, logging
class Snapshot:
......@@ -298,6 +298,7 @@ class Snapshot:
screen_name = screen_name.lower()
snapshot = cls(screen_name=screen_name, degree=1)
logging.info("Create snapshot for {0}".format(screen_name))
if not snapshot.file_exists():
snapshot.downloader.connect()
......@@ -311,14 +312,14 @@ class Snapshot:
else:
if not secondary:
snapshot.load()
snapshot.downloader.logging.info("Skipping {0} because snapshot exists".format(screen_name))
logging.info("Skipping {0} because snapshot exists".format(screen_name))
# if secondary is false, do not spider recursively
if not secondary:
snapshot.downloader.logging.info("Spider connections from {} ".format(screen_name))
logging.info("Spider connections from {} ".format(screen_name))
for func in [snapshot.query.followers, snapshot.query.leaders]:
snapshot.downloader.logging.info(func)
logging.info(func)
screen_names = func(screen_name)
for sub_screen_name in screen_names:
......
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