History

js: implement mp.msg.trace()

To match the new Lua helper introduced in 1afdeee1ad8bca1c703e741002fa3b882d162968 Add documentation for both.

TheAMM committed 8 years ago

Commit 3c4667c1 parent 1afdeee3 files · +8 −5Browse files

Showing the changes to player/javascript (1 of 3 files). Show all

Unified · Split

player/javascript/defaults.js+1−1
@@ -7,7 +7,7 @@ · 6 unmodified lines
77
88 mp.msg = { log: mp.log };
99 mp.msg.verbose = mp.log.bind(null, "v");
10−var levels = ["fatal", "error", "warn", "info", "debug"];
10+var levels = ["fatal", "error", "warn", "info", "debug", "trace"];
1111 levels.forEach(function(l) { mp.msg[l] = mp.log.bind(null, l) });
1212
1313 // same as {} but without inherited stuff, e.g. o["toString"] doesn't exist.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t