2 Commits

Author SHA1 Message Date
fauno 840fcdd8ff v0.5.5 2023-05-04 11:29:16 -03:00
fauno c5b30aa0db fix: split log message by the first bracket 2023-05-04 11:28:11 -03:00
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: "access_log"
version: "0.5.3"
version: "0.5.5"
authors:
- "f <f@sutty.nl>"
targets:
+3 -2
View File
@@ -11,7 +11,7 @@ require "./models/access_log"
require "./models/crawler"
require "./swd"
VERSION = "0.5.4"
VERSION = "0.5.5"
Log.setup_from_env
@@ -130,7 +130,8 @@ db = DB.open database do |db|
while true
begin
msg, _ = server.receive(1024 * 64) # 64K
_, _, _, _, json = msg.split(" ", 5)
_, json = msg.split("{", 2)
json = "{#{json}"
# Parse input
access_log = AccessLog.from_json(json || "{}")