"log" is replaced with the corresponding logging functions

This commit is contained in:
Michael 2021-10-21 06:04:27 +00:00
parent fd078ee0e2
commit 0bf6612ea3
31 changed files with 72 additions and 72 deletions

View file

@ -322,11 +322,11 @@ function wppost_send(&$a, &$b)
EOT;
Logger::log('wppost: data: ' . $xml, Logger::DATA);
Logger::debug('wppost: data: ' . $xml);
if ($wp_blog !== 'test') {
$x = DI::httpClient()->post($wp_blog, $xml)->getBody();
}
Logger::log('posted to wordpress: ' . (($x) ? $x : ''), Logger::DEBUG);
Logger::info('posted to wordpress: ' . (($x) ? $x : ''));
}
}