summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-18 18:13:14 +0200
committerRobin Gareus <robin@gareus.org>2020-04-18 18:16:12 +0200
commita2f07f66a5a42553adf1021970bd5c20849df13e (patch)
tree7bfcfb868c613f3f591801d4b8cd35b9ce80b707 /libs/ardour/session.cc
parenta4cfdd338df0f15be3c983fd9e22988f97b66fed (diff)
Consistent Lua script error and print() output 1/2
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 900cd90372..0c73acdaa5 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -5103,11 +5103,12 @@ Session::registered_lua_functions ()
return rv;
}
-#ifndef NDEBUG
static void _lua_print (std::string s) {
- std::cout << "SessionLua: " << s << "\n";
-}
+#ifndef NDEBUG
+ std::cout << "LuaSession: " << s << "\n";
#endif
+ PBD::info << "LuaSession: " << s << endmsg;
+}
void
Session::try_run_lua (pframes_t nframes)
@@ -5123,9 +5124,7 @@ Session::try_run_lua (pframes_t nframes)
void
Session::setup_lua ()
{
-#ifndef NDEBUG
lua.Print.connect (&_lua_print);
-#endif
lua.sandbox (true);
lua.do_command (
"function ArdourSession ()"