feat: improve logging of host ips
All checks were successful
create archive with lfs / tag (push) Successful in 9s
All checks were successful
create archive with lfs / tag (push) Successful in 9s
This commit is contained in:
parent
6041a544d6
commit
cfab2e35d8
@ -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}`)
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user