mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-26 18:52:41 +00:00
Quiet log message
This commit is contained in:
@@ -20,9 +20,7 @@ import {
|
|||||||
} from "@server/db";
|
} from "@server/db";
|
||||||
import { and, eq, inArray, ne } from "drizzle-orm";
|
import { and, eq, inArray, ne } from "drizzle-orm";
|
||||||
|
|
||||||
import {
|
import { deletePeer as newtDeletePeer } from "@server/routers/newt/peers";
|
||||||
deletePeer as newtDeletePeer
|
|
||||||
} from "@server/routers/newt/peers";
|
|
||||||
import {
|
import {
|
||||||
initPeerAddHandshake,
|
initPeerAddHandshake,
|
||||||
deletePeer as olmDeletePeer
|
deletePeer as olmDeletePeer
|
||||||
@@ -33,7 +31,7 @@ import {
|
|||||||
generateAliasConfig,
|
generateAliasConfig,
|
||||||
generateRemoteSubnets,
|
generateRemoteSubnets,
|
||||||
generateSubnetProxyTargetV2,
|
generateSubnetProxyTargetV2,
|
||||||
parseEndpoint,
|
parseEndpoint
|
||||||
} from "@server/lib/ip";
|
} from "@server/lib/ip";
|
||||||
import {
|
import {
|
||||||
addPeerData,
|
addPeerData,
|
||||||
@@ -51,10 +49,7 @@ export async function getClientSiteResourceAccess(
|
|||||||
? await trx
|
? await trx
|
||||||
.select()
|
.select()
|
||||||
.from(sites)
|
.from(sites)
|
||||||
.innerJoin(
|
.innerJoin(siteNetworks, eq(siteNetworks.siteId, sites.siteId))
|
||||||
siteNetworks,
|
|
||||||
eq(siteNetworks.siteId, sites.siteId)
|
|
||||||
)
|
|
||||||
.where(eq(siteNetworks.networkId, siteResource.networkId))
|
.where(eq(siteNetworks.networkId, siteResource.networkId))
|
||||||
.then((rows) => rows.map((row) => row.sites))
|
.then((rows) => rows.map((row) => row.sites))
|
||||||
: [];
|
: [];
|
||||||
@@ -362,7 +357,8 @@ export async function rebuildClientAssociationsFromSiteResource(
|
|||||||
.where(inArray(clients.clientId, existingClientSiteIds))
|
.where(inArray(clients.clientId, existingClientSiteIds))
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
const otherResourceClientIds = clientsFromOtherResourcesBySite.get(siteId) ?? new Set<number>();
|
const otherResourceClientIds =
|
||||||
|
clientsFromOtherResourcesBySite.get(siteId) ?? new Set<number>();
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`rebuildClientAssociations: [rebuildClientAssociationsFromSiteResource] siteId=${siteId} otherResourceClientIds=[${[...otherResourceClientIds].join(", ")}] mergedAllClientIds=[${mergedAllClientIds.join(", ")}]`
|
`rebuildClientAssociations: [rebuildClientAssociationsFromSiteResource] siteId=${siteId} otherResourceClientIds=[${[...otherResourceClientIds].join(", ")}] mergedAllClientIds=[${mergedAllClientIds.join(", ")}]`
|
||||||
@@ -709,7 +705,7 @@ export async function updateClientSiteDestinations(
|
|||||||
sourcePort: destination.sourcePort,
|
sourcePort: destination.sourcePort,
|
||||||
destinations: destination.destinations
|
destinations: destination.destinations
|
||||||
};
|
};
|
||||||
logger.info(
|
logger.debug(
|
||||||
`Payload for update-destinations: ${JSON.stringify(payload, null, 2)}`
|
`Payload for update-destinations: ${JSON.stringify(payload, null, 2)}`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user