Skip to content

Commit

Permalink
Source code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Oct 23, 2024
1 parent 9601a9c commit a904cd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions src/lib/post-to-influxdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,9 +1000,13 @@ export async function postLogEventToInfluxdb(msg) {
subsystem: msg.subsystem?.length > 0 ? msg.subsystem : '<Unknown>',
method: msg.method?.length > 0 ? msg.method : '<Unknown>',
object_type: msg.object_type?.length > 0 ? msg.object_type : '<Unknown>',
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 : '<Unknown>',
event_activity_source:
msg.event_activity_source?.length > 0
? msg.event_activity_source
: '<Unknown>',
};

// Tags that are empty in some cases. Only add if they are non-empty
Expand Down

0 comments on commit a904cd4

Please sign in to comment.