wpmdb_max_error_log_length
wpmdb_max_error_log_length
Appears in: wp-migrate-db.1.0.10, wp-migrate-db.1.0.11, wp-migrate-db.1.0.12, wp-migrate-db.1.0.13, wp-migrate-db.1.0.14, wp-migrate-db.1.0.15, wp-migrate-db.1.0.16, wp-migrate-db.1.0.17, wp-migrate-db.1.0.2, wp-migrate-db.1.0.3, wp-migrate-db.1.0.4, wp-migrate-db.1.0.5, wp-migrate-db.1.0.6, wp-migrate-db.1.0.7, wp-migrate-db.1.0.8, wp-migrate-db.1.0.9, wp-migrate-db.2.0, wp-migrate-db.2.0.1, wp-migrate-db.2.0.2, wp-migrate-db.2.1, wp-migrate-db.2.1.1, wp-migrate-db.2.1.2, wp-migrate-db.2.2.0, wp-migrate-db.2.2.2, wp-migrate-db.2.3.0, wp-migrate-db.2.3.1, wp-migrate-db.2.3.2, wp-migrate-db.2.3.3, wp-migrate-db.2.4.0, wp-migrate-db.2.4.1, wp-migrate-db.2.4.2, wp-migrate-db.2.5.0, wp-migrate-db.2.6.1, wp-migrate-db.2.6.10, wp-migrate-db.2.6.11, wp-migrate-db.2.6.3, wp-migrate-db.2.6.4, wp-migrate-db.2.6.5, wp-migrate-db.2.6.6, wp-migrate-db.2.6.7, wp-migrate-db.2.6.8, wp-migrate-db.2.6.9
Hook Type: filter
Displaying hooks found in version: wp-migrate-db.2.6.9apply_filters('wpmdb_max_error_log_length') is found 1 times:
- /class/Common/Error/ErrorLog.php line 137
$this->load_error_log(); // Error log length in bytes (default 1Mb) $max_log_length = apply_filters('wpmdb_max_error_log_length', 1000000); $max_individual_log_length = apply_filters('wpmdb_max_individual_error_log_length', $max_log_length / 2.2); // If error is longer than max individual log length, trim and add notice of doing so if (strlen($error) > $max_individual_log_length) { $length_trimmed = strlen($error) - $max_individual_log_length; $error = substr($error, 0, $max_individual_log_length);