diff --git a/platform/framework/src/LogLevel.js b/platform/framework/src/LogLevel.js index 973811ca07..fbf69e8dcd 100644 --- a/platform/framework/src/LogLevel.js +++ b/platform/framework/src/LogLevel.js @@ -90,12 +90,10 @@ define( } decorate($log); - app.config(function ($provide) { - $provide.decorator('$log', function ($delegate) { - decorate($delegate); - return $delegate; - }); - }); + app.decorator('$log', ['$delegate', function ($delegate) { + decorate($delegate); + return $delegate; + }]); }; return LogLevel;