Remove blocking socket.getfqdn() DNS lookup from request logging
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
132b881b08
commit
808efc3cb4
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ import inspect
|
|||
import json
|
||||
import random
|
||||
import re
|
||||
import socket
|
||||
import sys
|
||||
import traceback
|
||||
import typing
|
||||
|
|
@ -385,7 +384,7 @@ def index() -> str | Response:
|
|||
lat=lat,
|
||||
lon=lon,
|
||||
remote_addr=remote_addr,
|
||||
fqdn=socket.getfqdn(remote_addr) if remote_addr else None,
|
||||
fqdn=None,
|
||||
result=result,
|
||||
response_time_ms=int((time() - t0) * 1000),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue