feat: improve logging of host ips
All checks were successful
create archive with lfs / tag (push) Successful in 9s

This commit is contained in:
dusk 2024-10-31 16:57:57 +03:00
parent 6041a544d6
commit cfab2e35d8
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -26,7 +26,8 @@ export async function load({ request, cookies, url, setHeaders, fetch }) {
}).then(async (resp) => {
if (resp !== null) {
const msg = await resp.json()
console.log(`sent visitor analytic to dark visitors: ${resp.statusText}; ${msg.message}`)
const host = `(${request.headers.get('host')} ${request.headers.get('x-real-ip')})`
console.log(`sent visitor analytic to dark visitors: ${resp.statusText}; ${msg.message ?? ''}${host}`)
}
})