feat: show client IP in logs

This commit is contained in:
Greg Heartsfield
2022-11-02 18:33:44 -05:00
parent caffbbbede
commit 8ecce3f566
5 changed files with 35 additions and 20 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ fn mig_5_to_6(conn: &mut PooledConnection) -> Result<usize> {
if (tagval.len() % 2 == 0) && is_lower_hex(tagval) {
tx.execute(
"INSERT INTO tag (event_id, name, value_hex) VALUES (?1, ?2, ?3);",
params![event_id, tagname, hex::decode(&tagval).ok()],
params![event_id, tagname, hex::decode(tagval).ok()],
)?;
} else {
// otherwise, insert as text