mirror of
https://github.com/hzrd149/nsite-gateway.git
synced 2025-06-23 20:05:03 +00:00
small fix for logging
This commit is contained in:
parent
c84396ed62
commit
7b6e5560e6
@ -259,8 +259,9 @@ if (SUBSCRIPTION_RELAYS.length > 0) {
|
|||||||
try {
|
try {
|
||||||
const nsite = parseNsiteEvent(event);
|
const nsite = parseNsiteEvent(event);
|
||||||
if (nsite) {
|
if (nsite) {
|
||||||
|
const log = logger.extend(nip19.npubEncode(nsite.pubkey));
|
||||||
if (NGINX_CACHE_DIR) {
|
if (NGINX_CACHE_DIR) {
|
||||||
logger(`${nsite.pubkey}: Invalidating ${nsite.path}`);
|
log(`Invalidating ${nsite.path}`);
|
||||||
await invalidatePubkeyPath(nsite.pubkey, nsite.path);
|
await invalidatePubkeyPath(nsite.pubkey, nsite.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user