[ANSWERED]: Disable log from WebServer when using REST?

Posted on
Fri Apr 03, 2015 6:57 am
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

[ANSWERED]: Disable log from WebServer when using REST?

I have a device that is sending commands using RESTfull every few second. Unfortunately WebServer is logging all of the calls which creates a huge and messy log file.

Code: Select all
  Trigger                         Aktualizuj moc i licznik
  WebServer                       request to set variable "XLicznik" value to "0" from 192.168.0.171
  WebServer                       request to set variable "XPuls" value to "500" from 192.168.0.171
  WebServer                       request to set variable "XHeap" value to "10488" from 192.168.0.171
  WebServer                       request to set variable "XMoc" value to "884.52088452088" from 192.168.0.171
  Trigger                         Aktualizuj moc i licznik
  WebServer                       request to set variable "XLicznik" value to "0" from 192.168.0.171
  WebServer                       request to set variable "XPuls" value to "501" from 192.168.0.171
  WebServer                       request to set variable "XHeap" value to "10512" from 192.168.0.171
  WebServer                       request to set variable "XMoc" value to "891.08910891089" from 192.168.0.171
  Trigger                         Aktualizuj moc i licznik
  WebServer                       request to set variable "XLicznik" value to "0" from 192.168.0.171
  WebServer                       request to set variable "XPuls" value to "502" from 192.168.0.171
  WebServer                       request to set variable "XHeap" value to "10520" from 192.168.0.171
  WebServer                       request to set variable "XMoc" value to "871.67070217918" from 192.168.0.171
  Trigger                         Aktualizuj moc i licznik
  WebServer                       request to set variable "XLicznik" value to "0" from 192.168.0.171
  WebServer                       request to set variable "XPuls" value to "503" from 192.168.0.171
  WebServer                       request to set variable "XHeap" value to "10488" from 192.168.0.171
  WebServer                       request to set variable "XMoc" value to "900" from 192.168.0.171
  Trigger                         Aktualizuj moc i licznik
  WebServer                       request to set variable "XLicznik" value to "0" from 192.168.0.171
  WebServer                       request to set variable "XPuls" value to "504" from 192.168.0.171
  WebServer                       request to set variable "XHeap" value to "10520" from 192.168.0.171
  WebServer                       request to set variable "XMoc" value to "867.46987951807" from 192.168.0.171

Ryszard

Posted on
Fri Apr 03, 2015 8:35 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Is it possible to disable log from WebServer when using

Not currently, but improved control over logging is on our feature request list. You can hack the file:

/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/indigopy/indigodb.py

by searching for the function "def VariableSetValue" and then changing this line:

Code: Select all
      self._Log(logStr)

to be commented out:

Code: Select all
      # self._Log(logStr)

Note you need to stop/restart the Indigo Server for it to reload and that future installs of Indigo might overwrite the change, so you'll have to re-do it after an update/upgrade.

Image

Posted on
Fri Apr 03, 2015 9:25 am
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: [ANSWERED]: Disable log from WebServer when using REST?

Thanks for the quick response.

Ryszard

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests