MariaDB: check slow query log state

For diagnosis, do not edit config first; inspect current variables.

mariadb -e "show variables like 'slow_query_log%';"
mariadb -e "show variables like 'long_query_time';"

Verify the result

If slow log is off, enable it temporarily and record the change time.