Use log() method also used in server-side error.logger, metrics, analytics

This commit is contained in:
Lennart Kats 2015-04-08 17:10:36 +02:00
parent cdf2dc6ba7
commit b251c4ea98
2 changed files with 6 additions and 2 deletions

View File

@ -75,7 +75,9 @@ define(function(require, exports, module) {
/***** Register and define API *****/
plugin.freezePublicAPI({
reportError: reportError
/** @deprecated Use log() instead. */
reportError: reportError,
log: reportError
});
register(null, { "error_handler" : plugin });

View File

@ -108,7 +108,9 @@ define(function(require, exports, module) {
/***** Register and define API *****/
plugin.freezePublicAPI({
reportError: reportError
/** @deprecated Use log() instead. */
reportError: reportError,
log: reportError
});
register(null, { "error_handler" : plugin });