From c851394c284e1cb329ce42e13b9a5298fe09351c Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Fri, 2 Jun 2023 10:15:18 +0100 Subject: [PATCH] Log server errors --- wp-mat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-mat.php b/wp-mat.php index 64eb8b2..c435f99 100644 --- a/wp-mat.php +++ b/wp-mat.php @@ -3,7 +3,7 @@ * Plugin Name: wp-mat * Plugin URI: https://git.autistici.org/noblogs/wp-mat * Description: Process uploaded files through MAT - * Version: 0.0.4 + * Version: 0.0.5 * Author: Autistici/Inventati * Author URI: https://www.autistici.org/ * License: MIT @@ -81,6 +81,7 @@ function wp_mat_handle_upload_prefilter($file) { "size" => filesize($new_tmp_file), ); } else { + error_log("wp-mat: server error for file=".json_encode($file)); @unlink($new_tmp_file); } -- GitLab