Virtual parameters

Dan Morphis dan at milkcarton.com
Fri Feb 24 11:30:48 EST 2017


I patched lib/sandbox.js but I'm either not understanding how to call the
debug func, or there is something not working.

debug('foobar');

This outputs nothing to the console of the cwmp process.

On Wed, Feb 22, 2017 at 11:35 AM, Zaid Abdulla <zaid at genieacs.com> wrote:

> On Wed, 2017-02-22 at 06:51 -0900, Dan Morphis wrote:
> > Is there any way to log values inside the script? I tried
> > console.log, and let logger = require('./logger'); to no avail.
>
> Virtual parameter and provision scripts are sandbox and don't have
> access to any Node.js functions. I plan to expose a log function for
> use from scripts, but for now see the patch for a quick and dirty hack.
>
> --
> Zaid Abdulla <zaid at genieacs.com>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20170224/a5750120/attachment.html>


More information about the Users mailing list