<div dir="ltr">I patched lib/sandbox.js but I'm either not understanding how to call the debug func, or there is something not working.<div><br></div><div>debug('foobar');<br></div><div><br></div><div>This outputs nothing to the console of the cwmp process.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 11:35 AM, Zaid Abdulla <span dir="ltr"><<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2017-02-22 at 06:51 -0900, Dan Morphis wrote:<br>
> Is there any way to log values inside the script? I tried<br>
> console.log, and let logger = require('./logger'); to no avail.<br>
<br>
</span>Virtual parameter and provision scripts are sandbox and don't have<br>
access to any Node.js functions. I plan to expose a log function for<br>
use from scripts, but for now see the patch for a quick and dirty hack.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Zaid Abdulla <<a href="mailto:zaid@genieacs.com">zaid@genieacs.com</a>></font></span><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>