How to use the watchtower.conf.DBS function in watchtower

To help you get started, we’ve selected a few watchtower examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github synw / django-watchtower / watchtower / db / __init__.py View on Github external
def dispatch(hits, events=None, verbosity=0):
    global DBS
    for key in DBS:
        db = DBS[key]
        if "hits_db" in db:
            try:
                djdb = db["hits_db"]
            except:
                print("Database ", db, "not found")
            orm.write(djdb, hits, verbosity)
    print_summary(num_hits=len(hits))
github synw / django-watchtower / watchtower / db / __init__.py View on Github external
def dispatch(hits, events=None, verbosity=0):
    global DBS
    for key in DBS:
        db = DBS[key]
        if "hits_db" in db:
            try:
                djdb = db["hits_db"]
            except:
                print("Database ", db, "not found")
            orm.write(djdb, hits, verbosity)
    print_summary(num_hits=len(hits))