src/dirbs/utils.py
def warn_if_db_superuser(conn):
    """
    Warn if the current DB user is a PostgreSQL superuser.

    Arguments:
        conn: dirbs db connection object
    """
    logger = logging.getLogger('dirbs.db')
    if is_db_user_superuser(conn):
        logger.warning('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.

    Arguments:
        conn: dirbs db connection object
    
Warn if the current DB user is a PostgreSQL superuser.
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.warning('Running as PostgreSQL superuser -- for security reasons, we recommend running all '
                       'DIRBS tasks as a normal user')
def warn_if_db_superuser ( conn ) : logger = logging . getLogger ( 'dirbs.db' ) if is_db_user_superuser ( conn ) : logger . warning ( '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.
Warn if the current DB user is a PostgreSQL superuser .
"""
    Warn if the current DB user is a PostgreSQL superuser.

    Arguments:
        conn: dirbs db connection object
    """
conn
dirbs db connection object
dirbs db connection object