To match the new Lua helper introduced in 1afdeee1ad8bca1c703e741002fa3b882d162968 Add documentation for both.
Showing the changes to player/javascript (1 of 3 files). Show all
Unified · Split
| @@ -7,7 +7,7 @@ · 6 unmodified lines | ||
| 7 | 7 | |
| 8 | 8 | mp.msg = { log: mp.log }; |
| 9 | 9 | 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"]; | |
| 11 | 11 | levels.forEach(function(l) { mp.msg[l] = mp.log.bind(null, l) }); |
| 12 | 12 | |
| 13 | 13 | // same as {} but without inherited stuff, e.g. o["toString"] doesn't exist. |