Skip to content

Commit

Permalink
HPCC-33008 ECL Watch v9 fix repetitive WsLogaccess messages
Browse files Browse the repository at this point in the history
downgrades the logger messages for exceptions returned by WsLogaccess
GetLogAccessInfo to info so that they don't flood the UI when no log
engine is configured

Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg authored and GordonSmith committed Nov 19, 2024
1 parent b38a587 commit f27bc86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp/src/src/ESPLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ export function hasLogAccess(): Promise<boolean> {
return GetLogAccessInfo().then(response => {
if (isExceptionResponse(response)) {
const err = response.Exceptions.Exception[0].Message;
logger.error(err);
logger.info(err);
return false;
} else {
response = response as WsLogaccess.GetLogAccessInfoResponse;
return response?.RemoteLogManagerConnectionString !== null || response?.RemoteLogManagerType !== null;
}
}).catch(e => {
logger.error(e);
logger.info(e);
return false;
});
}

0 comments on commit f27bc86

Please sign in to comment.