NsDebug setting in portal_config

67 views
Skip to first unread message

Brent Nesbit

unread,
May 6, 2016, 9:46:08 AM5/6/16
to NetSapiens Developer Forum
At UGM I learned how to enable NsDebug in /etc/natsapiens/portal_config.php. I turned it on on our sandbox and it rapidly increased my development time. 

Now our sandbox is being reimaged, and I'm trying to enable this same setting on nms2, and I can't seem to make it work. 

At UGM we were told to edit /etc/natsapiens/portal_config.php and set nsdebug to 2. Now on nms2 I have tried every syntax I can think of, and all of them result in either the portal completely dying, or in just not getting the debug log I'm expecting in /usr/local/NetSapiens/netsapiens-portals/tmp/logs.

Can someone fill me in on the proper syntax? This is a non-exhaustive list of everything I have tried:

Configure::write('NsDebug' , '2');
('NsDebug' , '2');
NsDebug,2;
NsDebug = 2
NsDebug:2
etc
I also tried nsdebug, NSDebug, NSDEBUG, etc

Thanks! 

Brent Nesbit

unread,
May 6, 2016, 12:04:18 PM5/6/16
to NetSapiens Developer Forum
Dallan emailed me and suggested I try it as all lower case, and no quotes around the 2. That took care of it. Thanks Dallan!

Here's how it should look:

Configure::write('nsdebug' , 2);

-Brent

Chris Aaker

unread,
May 6, 2016, 12:06:42 PM5/6/16
to Brent Nesbit, NetSapiens Developer Forum
Yeah, that is it. Configure::write('nsdebug' , 2);


--
You received this message because you are subscribed to the Google Groups "NetSapiens Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netsapiens-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Chris Aaker

Vice President of Engineering | NetSapiens Inc.

P.O. Box 8588 La Jolla, CA 92038

(P) 858.764.5226 (F) 858.208.4424

(E) caa...@netsapiens.com (T) @NetSapiensChris


Website | News | Events | Facebook | Twitter | Linkedin


Reply all
Reply to author
Forward
0 new messages