diff --git a/src/globals.js b/src/globals.js index cd8e6a6a..93445f57 100755 --- a/src/globals.js +++ b/src/globals.js @@ -686,7 +686,6 @@ class Settings { this.logger.info(`CONFIG: Influxdb not enabled, skipping setup of db.`); } - // ------------------------------------ // Create MQTT client object and connect to MQTT broker // Only do this if MQTT is enabled diff --git a/src/lib/post-to-influxdb.js b/src/lib/post-to-influxdb.js index 3937a6ef..791569cc 100755 --- a/src/lib/post-to-influxdb.js +++ b/src/lib/post-to-influxdb.js @@ -1000,9 +1000,13 @@ export async function postLogEventToInfluxdb(msg) { subsystem: msg.subsystem?.length > 0 ? msg.subsystem : '', method: msg.method?.length > 0 ? msg.method : '', object_type: msg.object_type?.length > 0 ? msg.object_type : '', - proxy_session_id: msg.proxy_session_id?.length > 0 ? msg.proxy_session_id : '-1', + proxy_session_id: + msg.proxy_session_id?.length > 0 ? msg.proxy_session_id : '-1', session_id: msg.session_id?.length > 0 ? msg.session_id : '-1', - event_activity_source: msg.event_activity_source?.length > 0 ? msg.event_activity_source : '', + event_activity_source: + msg.event_activity_source?.length > 0 + ? msg.event_activity_source + : '', }; // Tags that are empty in some cases. Only add if they are non-empty