Server Excess Logging Problems

Supporting 2.6 and up
Post Reply
sheppy
Phidgetsian
Posts: 11
Joined: Mon Nov 06, 2017 1:34 pm
Contact:

Server Excess Logging Problems

Post 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
}
}
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Server Excess Logging Problems

Post 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
sheppy
Phidgetsian
Posts: 11
Joined: Mon Nov 06, 2017 1:34 pm
Contact:

Re: Server Excess Logging Problems

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests