Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 840fcdd8ff | |||
| c5b30aa0db |
@@ -1,5 +1,5 @@
|
||||
name: "access_log"
|
||||
version: "0.5.3"
|
||||
version: "0.5.5"
|
||||
authors:
|
||||
- "f <f@sutty.nl>"
|
||||
targets:
|
||||
|
||||
+3
-2
@@ -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 || "{}")
|
||||
|
||||
Reference in New Issue
Block a user