Verified Commit d617cee6 authored by Karel Koci's avatar Karel Koci 🤘

Add logging functions to restricted sandbox

parent d3e94771
......@@ -552,6 +552,17 @@ Note that the command is not run interactively ‒ there's no way to
communicate with the command. It is started, runs with preset input
and then the output is presented.
Logging
~~~~~~~
DBG "debug text"
INFO "information text"
WARN "warning text"
ERROR "error text"
These commands allows printing of messages for their corresponding
verbosity levels.
Variables
---------
......
......@@ -182,7 +182,11 @@ local rest_available_funcs = {
"tostring",
"type",
"unpack",
"xpcall"
"xpcall",
"ERROR",
"WARN",
"INFO",
"DBG"
}
local status_ok, run_state = pcall(backend.run_state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment