Skip to content
Extraits de code Groupes Projets
Valider 9ae49bb7 rédigé par Fil's avatar Fil
Parcourir les fichiers

logs dans tidy.log

parent 411d385c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -72,7 +72,7 @@ function xhtml ($buffer) { ...@@ -72,7 +72,7 @@ function xhtml ($buffer) {
else if ($charset == "utf-8") else if ($charset == "utf-8")
$enc_char = "utf8"; $enc_char = "utf8";
else { else {
spip_log("erreur inc_tidy : charset=$charset"); spip_log("erreur inc_tidy : charset=$charset", 'tidy');
return $buffer; return $buffer;
} }
...@@ -104,10 +104,13 @@ function xhtml ($buffer) { ...@@ -104,10 +104,13 @@ function xhtml ($buffer) {
." --add-xml-decl false" ." --add-xml-decl false"
." -m $tmp" ." -m $tmp"
." 2>&1"; ." 2>&1";
spip_log ($c); spip_log(nettoyer_uri(), 'tidy');
spip_timer('tidy');
exec($c, $verbose, $exit_code); exec($c, $verbose, $exit_code);
if ($exit_code == 2) spip_log ($c.' ('.spip_timer('tidy').')', 'tidy');
spip_log("Erreur tidy :\n".join("\n", $verbose)); if ($exit_code == 2) {
spip_log("Erreur tidy :\n".join("\n", $verbose), 'tidy');
}
rename($tmp,$nomfich); rename($tmp,$nomfich);
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter