def warn_if_db_superuser(conn):
    'Warn if the current DB user is a PostgreSQL superuser.'
    logger = logging.getLogger('dirbs.db')
    if is_db_user_superuser(conn):
        logger.warn('Running as PostgreSQL superuser -- for security reasons, we recommend running all DIRBS tasks as a normal user')
Warn if the current DB user is a PostgreSQL superuser.
def warn_if_db_superuser(conn):
    
    logger = logging.getLogger('dirbs.db')
    if is_db_user_superuser(conn):
        logger.warn('Running as PostgreSQL superuser -- for security reasons, we recommend running all DIRBS tasks as a normal user')