wpmdb_max_error_log_length

wpmdb_max_error_log_length

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.9

apply_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);