Append query ID and IP address as a /* comment */ to every query, if enabled in debug settings

This commit is contained in:
Kijin Sung 2021-01-13 22:14:15 +09:00
parent fcc3db3a7a
commit 4805a1864b
7 changed files with 47 additions and 1 deletions

View file

@ -230,6 +230,7 @@ $lang->debug_display_to_admin = 'Administrator only';
$lang->debug_display_to_ip = 'Visitors from IP adresses listed below';
$lang->debug_display_to_everyone = 'Everyone';
$lang->debug_log_filename = 'Log filename';
$lang->debug_query_comment = 'Add Comment to Queries';
$lang->debug_write_error_log = 'Write to Error Log';
$lang->debug_write_error_log_all = 'All errors and warnings';
$lang->debug_write_error_log_fatal = 'Fatal errors only';
@ -237,6 +238,7 @@ $lang->debug_write_error_log_none = 'None';
$lang->about_debug_log_filename = 'YYYYMMDD in the filename will be replaced with the current date.<br>It is recommended to split the log file by date to prevent it from getting too large.';
$lang->about_debug_write_error_log = 'Select how much information will be recorded in the PHP error log.<br>Error logs are recorded even if debugging is disabled in Rhymix.';
$lang->about_debug_error_log_path = 'The PHP error log is currently located at: %s';
$lang->about_debug_query_comment = 'Add a comment containing the query name and IP address to every SQL statement. This may help you determine where slow queries are coming from.';
$lang->msg_debug_log_filename_not_writable = 'Rhymix cannot write log files in the specified path.';
$lang->debug_allowed_ip = 'Allowed IP addresses';
$lang->seo_main_title = 'Main Page Title';