aqhome-apps: decreased verbosity.
This commit is contained in:
@@ -482,7 +482,7 @@ int _startBroker(AQH_OBJECT *o, AQH_REACT_SERVER *xo)
|
||||
DBG_ERROR(NULL, "Error connecting to broker server %s:%d", xo->brokerAddress, xo->brokerPort);
|
||||
return GWEN_ERROR_IO;
|
||||
}
|
||||
DBG_ERROR(NULL, "Physically connected to broker server %s:%d", xo->brokerAddress, xo->brokerPort);
|
||||
DBG_INFO(NULL, "Physically connected to broker server %s:%d", xo->brokerAddress, xo->brokerPort);
|
||||
|
||||
ep=AQH_IpcClientObject_new(AQH_Object_GetEventLoop(o), fd);
|
||||
assert(ep);
|
||||
@@ -496,7 +496,7 @@ int _startBroker(AQH_OBJECT *o, AQH_REACT_SERVER *xo)
|
||||
DBG_ERROR(NULL, "Error connecting to broker: %d", rv);
|
||||
return (rv<0)?rv:GWEN_ERROR_PERMISSIONS;
|
||||
}
|
||||
DBG_ERROR(NULL, "Connected to broker at %s:%d", xo->brokerAddress, xo->brokerPort);
|
||||
DBG_INFO(NULL, "Connected to broker at %s:%d", xo->brokerAddress, xo->brokerPort);
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
@@ -596,7 +596,7 @@ void _handleMsgFromBroker(AQH_REACT_SERVER *xo, const AQH_MESSAGE *msg)
|
||||
|
||||
tagList=AQH_IpcMessageTag16_ParsePayload(msg, 0);
|
||||
if (tagList) {
|
||||
DBG_ERROR(NULL, "Received IPC packet %d (%x)", (int) code, code);
|
||||
DBG_INFO(NULL, "Received IPC packet %d (%x)", (int) code, code);
|
||||
switch(code) {
|
||||
case AQH_MSGTYPE_IPC_DATA_DATACHANGED: _handleBrokerChangeData(xo->serverVarChangeUnit, tagList); break;
|
||||
default: break;
|
||||
@@ -620,9 +620,9 @@ void _handleBrokerChangeData(AQHREACT_UNIT *varChangeUnit, const GWEN_TAG16_LIST
|
||||
value=AQH_IpcdMessageMultiData_ReadValue(tagList);
|
||||
if (value) {
|
||||
AQH_IpcdMessageMultiData_ReadDatapoints(tagList, &dataPoints, &numberOfPoints);
|
||||
DBG_ERROR(NULL, "Value changed on server: %s (%d data points)",
|
||||
AQH_Value_GetNameForSystem(value),
|
||||
(int) numberOfPoints);
|
||||
DBG_INFO(NULL, "Value changed on server: %s (%d data points)",
|
||||
AQH_Value_GetNameForSystem(value),
|
||||
(int) numberOfPoints);
|
||||
if (numberOfPoints>0 && dataPoints) {
|
||||
uint32_t i;
|
||||
|
||||
@@ -633,7 +633,7 @@ void _handleBrokerChangeData(AQHREACT_UNIT *varChangeUnit, const GWEN_TAG16_LIST
|
||||
timestamp=*(dataPoints++);
|
||||
u.i=*(dataPoints++);
|
||||
AqHomeReact_UnitVarChanges_ValueUpdated(varChangeUnit, value, timestamp, u.f);
|
||||
DBG_ERROR(NULL, " datapoint: %f", u.f);
|
||||
DBG_INFO(NULL, " datapoint: %f", u.f);
|
||||
}
|
||||
}
|
||||
AQH_Value_free(value);
|
||||
@@ -650,7 +650,7 @@ void AQH_ReactServer_CheckBrokerConnection(AQH_OBJECT *o)
|
||||
if (xo && xo->dbArgs) {
|
||||
if (xo->brokerEndpoint) {
|
||||
if (AQH_Object_GetFlags(xo->brokerEndpoint) & AQH_OBJECT_FLAGS_DELETE) {
|
||||
DBG_ERROR(NULL, "Deleting broker connection");
|
||||
DBG_INFO(NULL, "Deleting broker connection");
|
||||
AQH_Object_Disable(xo->brokerEndpoint);
|
||||
AQH_Object_free(xo->brokerEndpoint);
|
||||
xo->brokerEndpoint=NULL;
|
||||
|
||||
Reference in New Issue
Block a user