diff options
author | TheAMM <the.actual.amm@gmail.com> | 2017-12-16 10:18:20 +0200 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-12-16 02:25:24 -0800 |
commit | 3c4667c862dba05d89d0fd24a198bb49c8c47cb8 (patch) | |
tree | 1d272f73d4a86487b87114eb7dc1e3ad010bbfeb /player | |
parent | 1afdeee1ad8bca1c703e741002fa3b882d162968 (diff) |
js: implement mp.msg.trace()
To match the new Lua helper introduced in
1afdeee1ad8bca1c703e741002fa3b882d162968
Add documentation for both.
Diffstat (limited to 'player')
-rw-r--r-- | player/javascript/defaults.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/javascript/defaults.js b/player/javascript/defaults.js index f35add5904..56c83f8abb 100644 --- a/player/javascript/defaults.js +++ b/player/javascript/defaults.js @@ -7,7 +7,7 @@ mp.msg = { log: mp.log }; mp.msg.verbose = mp.log.bind(null, "v"); -var levels = ["fatal", "error", "warn", "info", "debug"]; +var levels = ["fatal", "error", "warn", "info", "debug", "trace"]; levels.forEach(function(l) { mp.msg[l] = mp.log.bind(null, l) }); // same as {} but without inherited stuff, e.g. o["toString"] doesn't exist. |