[MDEV-19378] Get rid of 'printf(stderr...' in Audit Plugin. Created: 2019-05-01  Updated: 2023-04-24

Status: Open
Project: MariaDB Server
Component/s: Plugin - Audit
Affects Version/s: None
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Alexey Botchkov Assignee: Dmitry Shulga
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Currently the plugin sends messages to the server error log doing printf(stderr,...)
But on Windows it doesn't work as the plugin gets the stderr different from the server,
and if the server runs as a service it does not have the stderr at all.

Replace the calls with the my_printf_error(ER_UNKNOWN_ERROR, "%s", ME_ERROR_LOG_ONLY,message); in 10.4 and with WriteFile like here https://github.com/MariaDB/server/blob/10.2/plugin/aws_key_management/aws_key_management_plugin.cc#L168 in earlier versions.


Generated at Thu Feb 08 08:51:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.