catch errors/warnings during patroni reload

pglift version

1.3.1

Summary

Currently no error/warning is raised when an error/warning is generated when reloading the patroni configuration.

Is it possible to catch these and have them in the pglift log ?

Steps to reproduce

[postgres@pg1 ~]$ pglift pgconf -i main set work_mem='4M'
INFO     configuring PostgreSQL                                                                                                
INFO     setting up Patroni service                                                                                            
INFO     reloading Patroni 14-main                                                                                             
INFO     instance 14/main needs reload due to parameter changes: work_mem                                                      
INFO     reloading Patroni 14-main                                                                                             
work_mem: 3M -> 4M

work_mem is invalid (4M instead of 4MB) but no warning. In the patroni log we have a warning :

WARNING: Removing integer parameter=work_mem from the config due to the invalid value=4M
Edited by Luc LAMARLE