fix: Change MQTT publish log to debug (#22063)

This commit is contained in:
Koen Kanters
2024-04-03 18:13:46 +00:00
committed by GitHub
parent cdd6fb0864
commit bbb6f9e042
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ export default class MQTT {
}
if (!skipLog) {
logger.info(`MQTT publish: topic '${topic}', payload '${payload}'`);
logger.debug(`MQTT publish: topic '${topic}', payload '${payload}'`);
}
const actualOptions: mqtt.IClientPublishOptions = {...defaultOptions, ...options};
+1 -1
View File
@@ -280,7 +280,7 @@ describe('Controller', () => {
logger.debug.mockClear();
await controller.mqtt.publish('skip-this-topic', '', {});
await MQTT.events.message('zigbee2mqtt/skip-this-topic', 'skipped');
expect(logger.debug).toHaveBeenCalledTimes(0);
expect(logger.debug).toHaveBeenCalledTimes(1);
});
it('On zigbee event message', async () => {