Skip to content

Commit e10e9c8

Browse files
committed
MAGETWO-59587: Debugging and profiling tools for UI Components and Javascript modules
1 parent 199c9c0 commit e10e9c8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/Ui/view/base/requirejs-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var config = {
1515
uiClass: 'Magento_Ui/js/lib/core/class',
1616
uiEvents: 'Magento_Ui/js/lib/core/events',
1717
uiRegistry: 'Magento_Ui/js/lib/registry/registry',
18+
consoleLogger: 'Magento_Ui/js/lib/logger/console-logger',
1819
uiLayout: 'Magento_Ui/js/core/renderer/layout',
1920
buttonAdapter: 'Magento_Ui/js/form/button-adapter'
2021
}

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/lib/logger/logger.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ define([
189189
spyOn(entryHandler, 'show');
190190
spyOn(entryFactory, 'createEntry').and.callThrough();
191191

192+
logger.setDisplayLevel(levels.WARN);
192193
entry = logger.warn('warn message', logData);
193194

194195
expect(entry instanceof LogEntry).toBe(true);

0 commit comments

Comments
 (0)