[MXS-3448] Unable to disable maxlog Created: 2021-03-17 Updated: 2021-04-01 Resolved: 2021-03-24 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 2.5.8, 2.5.9 |
| Fix Version/s: | 2.5.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jozef Kováč | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 18.04.5 & RHEL 8.3 |
||
| Issue Links: |
|
||||||||
| Description |
|
I have disabled maxlog in global configuration options but logs are still written to /var/log/maxscale/maxscale.log. Even this entry is part of logs "notice : maxlog logging is disabled." part of my conf: |
| Comments |
| Comment by Jozef Kováč [ 2021-03-29 ] | |||||||||
|
After update to 2.5.10 still maxscale with maxlog=0 continously writing to /var/log/maxscale/maxscale.log, symlink to /dev/null works but... | |||||||||
| Comment by markus makela [ 2021-03-29 ] | |||||||||
|
Can you check if there's a file in /var/lib/maxscale/maxscale.cnf.d/ that contains the maxlog parameter? If there is, does removing that file solve it? | |||||||||
| Comment by Jozef Kováč [ 2021-03-29 ] | |||||||||
|
/var/lib/maxscale/maxscale.cnf.d/ is empty directory | |||||||||
| Comment by markus makela [ 2021-03-29 ] | |||||||||
|
OK, I think I managed to reproduce it. Can you verify that you'll get a few lines of code every time MaxScale is restarted but nothing after that? This is what I'm getting:
I think this might be how older releases behaves so in some sense it's a separate bug. Ideally, we'd of course not log a single message before the log configuration has been read. | |||||||||
| Comment by Jozef Kováč [ 2021-03-31 ] | |||||||||
|
yes only few lines at start or restart is written | |||||||||
| Comment by markus makela [ 2021-04-01 ] | |||||||||
|
This seems like a different issue as the maxlog option now works as it used to work. I've opened |