@mattab opened this Issue on July 8th 2015 Member

Currently Piwik logs errors in server error log as follows:

[Wed Jul 08 09:56:45 2015] [warn] [client] mod_fcgid: stderr: Error in Piwik: <!DOCTYPE html> <html> <head> \t<meta charset="utf-8"> \t<meta name="robots" content="noindex,nofollow"> \t<title>Piwik &rsaquo; Error</title> 
\t<link rel="shortcut icon" href="misc/user/favicon.png" /> \t<link rel="stylesheet" type="text/css" href="plugins/Morpheus/stylesheets/simple_structure.css" /> </head> <body id="simple">  <div class="logo"> \t<img title="Piwik" alt=
"Piwik" src="http://demo.piwik.org/plugins/Morpheus/images/logo-header.png"/> \t<br/> \t<a href='http://piwik.org/'>free/libre analytics platform</a> </div>  <div class="box">  \t<div class="header"> \t\t<h1>An error occurred</h1> \t
</div>  \t<div class="content"><h2>Renderer format &<a href='/039'>#039</a>;xml&<a href='/039'>#039</a>;a=0&<a href='/039'>#039</a>; not valid. Try any of the following instead: console, csv, html, json2, json, original, php, rss, tsv, xml.</h2>                     <p><a href="javascript:w
indow.history.back();">Go Back</a> | <a href="index.php">Go to Piwik</a> |                        <a href="index.php?module=Login">Login</a></p>  <ul>                             <li><a rel="noreferrer" target="_blank" href="http://p
iwik.org">Piwik.org homepage</a></li>                             <li><a rel="noreferrer" target="_blank" href="http://piwik.org/faq/">Piwik Frequently Asked Questions</a></li>                             <li><a rel="noreferrer" targ
et="_blank" href="http://piwik.org/docs/">Piwik Documentation</a></li>                             <li><a rel="noreferrer" target="_blank" href="http://forum.piwik.org/">Piwik Forums</a></li>                             <li><a rel="n
oreferrer" target="_blank" href="http://demo.piwik.org">Piwik Online Demo</a></li>                             </ul>    </div>      <div class="footer">         <a href="index.php">&laquo; Back to Piwik</a>     </div>  </div> </body>
 </html>  , referer: http://demo.piwik.org/index.php?module=API&method=Referers.getKeywords&idSite=7&period=week&date=last10&format=xml'A=0&token_auth=anonymous
  • Got: errors are logged with HTML markups, which makes it hard to read error logs
  • Expected: error messages logged in error log without HTML markups, should only be text message
This Issue was closed on July 27th 2015
Powered by GitHub Issue Mirror