view backend/sqlalchemy/util.py @ 195:66d1efcb8e8a

filter out warnings that we cannot handle
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 25 Nov 2011 11:15:22 +0100
parents 04a730f9d07d
children bb3c851b18b1
line wrap: on
line source


import sys

def databaseLoggingEnabled():
    loggingEnabled = False
    for arg in sys.argv:
        if arg == "--databaseLogging":
            loggingEnabled = True
    return loggingEnabled