Skip to content
  • Praveenkumar Hulakund's avatar
    682bc7d7
    WL11678 - Logging services: Add unique error-ids to the messages logged using error_log_printf() · 682bc7d7
    Praveenkumar Hulakund authored
    Following methods logs their error message by using hook
    error_log_printf(),
    
      *) my_message_local
      *) my_getopt_error_reporter
      *) my_charset_error_reporter
      *) Query_log_table_intact::report_error
      *) Component_db_intact::report_error
      *) sql_plugin.cc: report_error()
    
    All the error messages logged with these methods get the same
    error ID "ER_LOG_PRINTF_MSG".
    
    As part of this WL, changes are made to log those error messages
    with the unique error ID.
    
    Error messages are added to errmsg-utf8.txt for the messages
    logged using Query_log_table_intact::report_error(),
    Component_db_intact::report_error() and sql_plugin.cc:report_error().
    Logging API is used to log error messages with the error IDs.
    
    my_message_local, my_getopt_error_reporter, my_charset_error_reporter
    are part of the mysys library. mysys library is used by the MySQL
    server and clients. Error messages and their ids should be
    available to both client and server. Hence these error messages
    are added to the global error messages list. In MySQL server,
    these methods are logged using the Logging APIs.
    
    This patch also replaces of some the sql_print_error() usage with
    the new logging APIs.
    
    Change-Id: I067db339f7c27615a840c7442be557f2c24efe9f
    682bc7d7
    WL11678 - Logging services: Add unique error-ids to the messages logged using error_log_printf()
    Praveenkumar Hulakund authored
    Following methods logs their error message by using hook
    error_log_printf(),
    
      *) my_message_local
      *) my_getopt_error_reporter
      *) my_charset_error_reporter
      *) Query_log_table_intact::report_error
      *) Component_db_intact::report_error
      *) sql_plugin.cc: report_error()
    
    All the error messages logged with these methods get the same
    error ID "ER_LOG_PRINTF_MSG".
    
    As part of this WL, changes are made to log those error messages
    with the unique error ID.
    
    Error messages are added to errmsg-utf8.txt for the messages
    logged using Query_log_table_intact::report_error(),
    Component_db_intact::report_error() and sql_plugin.cc:report_error().
    Logging API is used to log error messages with the error IDs.
    
    my_message_local, my_getopt_error_reporter, my_charset_error_reporter
    are part of the mysys library. mysys library is used by the MySQL
    server and clients. Error messages and their ids should be
    available to both client and server. Hence these error messages
    are added to the global error messages list. In MySQL server,
    these methods are logged using the Logging APIs.
    
    This patch also replaces of some the sql_print_error() usage with
    the new logging APIs.
    
    Change-Id: I067db339f7c27615a840c7442be557f2c24efe9f
Loading