Commit Graph
88 Commits
Author SHA1 Message Date
Benjamin Arntzen (aider) 6c4666bf59 Updated color generation logic and reduced interval for API requests in server. 2024-06-27 08:15:32 +01:00
Benjamin Arntzen (aider) 08bedb80a4 Improved node color calculation and increased log query interval in server.js. 2024-06-27 07:57:58 +01:00
Benjamin Arntzen (aider) a6b1dd1c40 Updated node color based on peer ID hash. 2024-06-27 07:56:35 +01:00
Benjamin Arntzen 58ed0f80c2 Reduced the time window for the API query from 10 seconds to 3 seconds. 2024-06-27 07:56:34 +01:00
Benjamin Arntzen (aider) d495680bb8 Refactored log processing to use peer ID instead of node ID. 2024-06-27 07:50:41 +01:00
Benjamin Arntzen (aider) df8e9351b8 Added validation to ensure required fields are present in log entries before processing. 2024-06-27 07:48:42 +01:00
Benjamin Arntzen (aider) a9b70be57c Improved log parsing by checking for valid JSON and applying transformations to handle different log formats. 2024-06-27 07:47:00 +01:00
Benjamin Arntzen f0357337a1 Implemented a more robust parsing logic for log lines, transforming _stream and _msg fields into valid JSON objects. 2024-06-27 07:46:59 +01:00
Benjamin Arntzen (aider) 49f22f53d3 Removed unnecessary key quoting in log line transformation. 2024-06-27 07:43:27 +01:00
Benjamin Arntzen (aider) 65e1057c2c Ensure keys are in quotes when transforming log lines into valid JSON. 2024-06-27 07:42:37 +01:00
Benjamin Arntzen (aider) c5b969a91d Removed unnecessary key quoting in log line transformation. 2024-06-27 07:41:44 +01:00
Benjamin Arntzen (aider) c7d80e4f47 Refactored error handling in parseLogLines function. 2024-06-27 07:40:52 +01:00
Benjamin Arntzen (aider) e67dfbc23f Refactored error logging for better debugging information. 2024-06-27 07:39:56 +01:00
Benjamin Arntzen (aider) 80835c65af Remove duplicate JSON parsing in parseLogLines function. 2024-06-27 07:38:25 +01:00
Benjamin Arntzen (aider) 093895b39d Parse log lines into valid JSON objects. 2024-06-27 07:38:05 +01:00
Benjamin Arntzen 4ba1c00938 Refactored log line transformation logic in parseLogLines function. 2024-06-27 07:38:04 +01:00
Benjamin Arntzen a9469d487a Parse log lines into valid JSON strings and handle errors consistently. 2024-06-27 07:35:54 +01:00
Benjamin Arntzen (aider) 3f26ef9901 Refactored log line parsing to handle errors only for the first log line. 2024-06-27 07:34:04 +01:00
Benjamin Arntzen (aider) 5011c6a00f Transformed log lines into valid JSON objects by applying various regex replacements and transformations. 2024-06-27 07:33:17 +01:00
Benjamin Arntzen (aider) d76819f104 Correctly escape backslashes and quotes, replace '=' with ':' and add quotes around field names. 2024-06-27 07:32:21 +01:00
Benjamin Arntzen (aider) 1219f188b9 Refactored log line transformation to escape backslashes and handle quotes properly. 2024-06-27 07:30:56 +01:00
Benjamin Arntzen (aider) 300e704d53 Refactored log line parsing to transform into valid JSON format. 2024-06-27 07:29:32 +01:00
Benjamin Arntzen 14a653a377 Refactored log line parsing in parseLogLines function. 2024-06-27 07:29:31 +01:00
Benjamin Arntzen (aider) 5a026ab53a Refactored log line parsing to improve JSON transformation and error handling. 2024-06-27 07:27:50 +01:00
Benjamin Arntzen d5ff988f70 Transform log lines to valid JSON format by wrapping keys in quotes and removing equal signs. 2024-06-27 07:25:10 +01:00
Benjamin Arntzen ecd29eaf77 Refactored log line parsing to improve JSON transformation and parsing. 2024-06-27 07:23:51 +01:00
Benjamin Arntzen 7f8489ba1d Transformed custom log format into valid JSON format in parseLogLines function. 2024-06-27 07:23:10 +01:00
Benjamin Arntzen 99baa79f86 Transformed custom log format into valid JSON strings when parsing log lines. 2024-06-27 07:21:42 +01:00
Benjamin Arntzen (aider) d6dad55fe1 Removed unnecessary return statements from parseLogLines function. 2024-06-27 07:20:01 +01:00
Benjamin Arntzen 99252d1453 Refactored log line parsing to handle nested JSON strings. 2024-06-27 07:18:42 +01:00
Benjamin Arntzen a3afac604b Parsed log lines by unescaping characters and parsing JSON strings. 2024-06-27 07:17:53 +01:00
Benjamin Arntzen (aider) c5e0f32d33 Fix unescaping of double quotes in log lines. 2024-06-27 07:15:52 +01:00
Benjamin Arntzen (aider) c1414cc050 Refactored escaping logic in parseLogLines function. 2024-06-27 07:14:36 +01:00
Benjamin Arntzen (aider) 6b098a7a21 Parsed log lines are now properly unescaped and returned. 2024-06-27 07:13:20 +01:00
Benjamin Arntzen (aider) b65d8a3138 Implemented a custom JSON parser in the parseLogLines function to handle nested JSON objects within the log lines. 2024-06-27 07:08:59 +01:00
Benjamin Arntzen (aider) 76c938daa1 Removed unnecessary string replacement in log parsing function. 2024-06-27 07:06:04 +01:00
Benjamin Arntzen (aider) 489c53254a Improved log parsing by unescaping double quotes and handling escaped whitespace in log entries. 2024-06-27 07:04:54 +01:00
Benjamin Arntzen (aider) 28b8af9398 Improved log parsing by unescaping double quotes in log lines. 2024-06-27 07:03:23 +01:00
Benjamin Arntzen (aider) cf13f3296a Implemented log parsing functionality and updated server to fetch and store valid log lines. 2024-06-27 07:01:10 +01:00
Benjamin Arntzen (aider) 9dc42fb8de Increased the time range for the API query from 4 seconds to 10 seconds. 2024-06-27 07:00:26 +01:00
Benjamin Arntzen (aider) 60a1da6879 Refactored log parsing and processing logic into separate functions. 2024-06-27 06:59:19 +01:00
Benjamin Arntzen (aider) a2eff2745c Enabled debug mode based on command line argument and improved logging in setInterval callback. 2024-06-27 06:58:06 +01:00
Benjamin Arntzen (aider) 9c560f00d0 Implemented debug mode and API request logic to fetch logs in server.js 2024-06-27 06:57:01 +01:00
Benjamin Arntzen (aider) 7fad589978 Implemented response handling logic to log whether the API response was empty or non-empty. 2024-06-27 06:55:37 +01:00
Benjamin Arntzen (aider) 8ca8d57f27 Implemented logging to display fetched logs. 2024-06-27 06:53:55 +01:00
Benjamin Arntzen (aider) 8a9d566902 Removed unnecessary event listeners and simplified WebSocket event handling in the client-side app.js file. 2024-06-27 06:52:53 +01:00
Benjamin Arntzen (aider) 837f581319 Added WebSocket event listeners and error handling in both client and server code. 2024-06-27 06:51:54 +01:00
Benjamin Arntzen (aider) 1c93bcbc18 Implemented event-based WebSocket communication to notify clients of node creation and light-up events. 2024-06-27 06:51:17 +01:00
Benjamin Arntzen (aider) 1035abf12f Implemented error handling for log fetching and updated the logs array accordingly. 2024-06-27 06:50:06 +01:00
Benjamin Arntzen (aider) 6cee982070 Implemented log processing functionality to filter out invalid logs. 2024-06-27 06:49:14 +01:00