This is the first working version of the new logging system. Some work
in fine tuning still needs to be done. But is reasonably OK now.
This commit is contained in:
@ -66,7 +66,6 @@
|
||||
#include "chadapter.h"
|
||||
#include "status.h"
|
||||
#include "site.h"
|
||||
#include "commandlog.h"
|
||||
/*--------------------- Functions needed to implement interfaces -----------*/
|
||||
static long EVIDrive(void *pData, SConnection * pCon, float fVal)
|
||||
{
|
||||
@ -607,7 +606,7 @@ static int EVIIsInTolerance(void *pData)
|
||||
*/
|
||||
memset(pError, 0, 132 * sizeof(char));
|
||||
self->pDriv->GetError(self->pDriv, &iCode, pError, 131);
|
||||
WriteToCommandLog("emon>> ", pError);
|
||||
Log(ERROR,"dev", "emon:%s", pError);
|
||||
iStat = self->pDriv->TryFixIt(self->pDriv, iCode);
|
||||
if ((iStat == DEVOK) || (iStat == DEVREDO)) {
|
||||
return 1; /* effectively a redo in some time */
|
||||
|
Reference in New Issue
Block a user