]> git.sesse.net Git - casparcg/blobdiff - modules/html/html.cpp
#346 #441 Added remote debugging support in html producer.
[casparcg] / modules / html / html.cpp
index 867edb0470ea54eba5be538120c76a342f7dc682..dc7365b4a4a05b62456b0bb50f693a2475ffb360 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <common/executor.h>
 #include <common/future.h>
+#include <common/env.h>
 
 #include <core/producer/cg_proxy.h>
 
@@ -234,6 +235,7 @@ void init(core::module_dependencies dependencies)
        {
                CefSettings settings;
                settings.no_sandbox = true;
+               settings.remote_debugging_port = env::properties().get(L"configuration.html.remote-debugging-port", 0);
                //settings.windowless_rendering_enabled = true;
                CefInitialize(main_args, settings, nullptr, nullptr);
        });
@@ -303,13 +305,13 @@ public:
 
        void Execute() override
        {
-               CASPAR_LOG(trace) << "[cef_task] executing task";
+               CASPAR_LOG_CALL(trace) << "[cef_task] executing task";
 
                try
                {
                        function_();
                        promise_.set_value();
-                       CASPAR_LOG(trace) << "[cef_task] task succeeded";
+                       CASPAR_LOG_CALL(trace) << "[cef_task] task succeeded";
                }
                catch (...)
                {