Page 1 of 1

Server Excess Logging Problems

Posted: Tue Nov 07, 2017 8:23 pm
by sheppy
I have Phidgets22NetworkServer running on a Pi3 with Jessie. I am trying to turn off all unnecessary logging messages, but despite copying and pasting the log settings from the support website I still have the following entry everytime I connect. Can you advise what I'm doing wrong please:

From the logfile

INFO [_phidget22usb][2017-11-08T15:24:15]:Using Control Endpoint for Host->Device communication.
INFO [_phidget22usb][2017-11-08T15:24:16]:

My phidget22networkserver.pc lives in /etc/phidgets, and the logfile name agrees with what I set in the config file

from phidget22networkserver.pc

phidget {
enabled: true

logging {
level: warn
file: '/var/log/phidgetserver.log'
maxfiles: 3
maxsize: 512000
}
network {
keepalive: 0
ipv4 {
port: 5661
}
}
source {
phidget22net {
level: info
}
_phidget22usb {
level: error
}
_phidget22match {
level: error
}
_phidget22channel {
level: error
}
_phidget22bridge {
level: error
}
_phidget22disp {
level: error
}
}

Re: Server Excess Logging Problems

Posted: Thu Nov 09, 2017 11:30 am
by mparadis
The problem is that the "source" block has to be inside the logging block.

You'll know that source-specific logging is working if it gives the following output:

Code: Select all

INFO [phidget22][2017-11-09T10:33:29]:******************** Logging enabled ******************** 
INFO [netsrv][2017-11-09T10:33:29]:logging: _phidget22bridge=error
INFO [netsrv][2017-11-09T10:33:29]:logging: _phidget22channel=error
INFO [netsrv][2017-11-09T10:33:29]:logging: _phidget22disp=error
INFO [netsrv][2017-11-09T10:33:29]:logging: _phidget22match=error
INFO [netsrv][2017-11-09T10:33:29]:logging: _phidget22usb=error
INFO [netsrv][2017-11-09T10:33:29]:logging: phidget22net=info

Re: Server Excess Logging Problems

Posted: Sun Nov 12, 2017 2:37 pm
by sheppy
I'll give that a try next time I use the server. Since writing the post I moved the query script onto the Pi that hosts the Phidgets, as the Network Server gave up serving requests after a period of time.