[MXS-4044] Log a message whenever a server is set into maintenance mode. Created: 2022-03-14  Updated: 2022-10-17  Resolved: 2022-09-19

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: None
Fix Version/s: 22.08.2

Type: New Feature Priority: Minor
Reporter: Pramod Mahto Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-166

 Description   

Currently after enabling* log_info=1* under [maxscale] section only display information about maintenance mode.

Command :

maxctrl set server vmc_c maintenance
maxctrl clear server vmc_c maintenance

Output :-

2022-03-10 23:40:53   info   : Accept authentication from 'admin', using password. Request: /v1/servers/vmc_c/set
2022-03-10 23:41:12   info   : Accept authentication from 'admin', using password. Request: /v1/servers/vmc_c/clear
2022-03-10 23:41:18   info   : Accept authentication from 'admin', using password. Request: /v1/servers

This can be changed to default without enabling log_info=1 for exact message to be logged as it doesn't tell what state the server was put into.


Generated at Thu Feb 08 04:25:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.