In order to mitigate against the brute force attacks against Gitlab accounts, we are moving to all edu-ID Logins. We would like to remind you to link your account with your edu-id. Login will be possible only by edu-ID after November 30, 2021. Here you can find the instructions for linking your account.

If you don't have a SWITCH edu-ID, you can create one with this guide here

kind regards

This Server has been upgraded to GitLab release 14.2.6

Unverified Commit 6c72e37d authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

log sql statements

parent eb7b0b02
Pipeline #16897 passed with stages
in 4 minutes and 15 seconds
......@@ -206,12 +206,14 @@ def _create_sql_stmt(table_name, record, fields):
def _create_entities_entry(record, mariadb_cursor):
fields = ['sig', 'uri', 'access', 'proto']
sql_stmt = _create_sql_stmt('entities', record, fields)
logging.info(sql_stmt)
mariadb_cursor.execute(sql_stmt)
def _create_metadata_entry(record, mariadb_cursor):
fields = ['sig', 'mimetype', 'height', 'width', 'duration', 'type']
sql_stmt = _create_sql_stmt('metadata', record, fields)
logging.info(sql_stmt)
mariadb_cursor.execute(sql_stmt)
......
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