1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:35:56 +00:00

better javascript error reporting, save error reports in tt-rss log

This commit is contained in:
Andrew Dolgov
2013-04-20 10:43:21 +04:00
parent 9ce600c801
commit f66492d357
2 changed files with 48 additions and 1 deletions

View File

@@ -634,5 +634,16 @@ class RPC extends Handler_Protected {
}
}
function log() {
$logmsg = $this->dbh->escape_string($_REQUEST['logmsg']);
if ($logmsg) {
Logger::get()->log_error(E_USER_WARNING,
$logmsg, '[client-js]', 0, false);
}
echo json_encode(array("message" => "HOST_ERROR_LOGGED"));
}
}
?>