Skip to content

Commit

Permalink
Switch MariaDB log from general log to error log
Browse files Browse the repository at this point in the history
The general_log is providing a lot logs, that later are breaking logcli
tool. We don't need to grab all logs, but just more important which are
error_log messages.
The fluentbit forwarder sidecard container for MariaDB is monitoring
only logs with extension: '.log', so let's create such file, so the
health check tests whould be also satisfied with that change.

Change-Id: Ie3e4a8c9bcff12c86fed5c5acfa14d32e9b77245
  • Loading branch information
danpawlik committed Jun 7, 2024
1 parent 4a6c114 commit 0622919
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/static/mariadb/my.cnf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ init-file=/docker-entrypoint-initdb.d/initfile.sql
innodb_file_per_table=on

[mariadb]
general_log
general_log_file=/var/log/mariadb/mariadb.log
log_error=/var/log/mariadb/error.log

0 comments on commit 0622919

Please sign in to comment.