mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-15 10:12:17 +02:00
Quiet warning messages
This commit is contained in:
@@ -700,7 +700,7 @@ async function handleMessagesForSiteClients(
|
|||||||
trx: Transaction | typeof db = db
|
trx: Transaction | typeof db = db
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (!site.exitNodeId) {
|
if (!site.exitNodeId) {
|
||||||
logger.warn(
|
logger.debug(
|
||||||
`Exit node ID not on site ${site.siteId} so there is no reason to update clients because it must be offline`
|
`Exit node ID not on site ${site.siteId} so there is no reason to update clients because it must be offline`
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
@@ -714,14 +714,14 @@ async function handleMessagesForSiteClients(
|
|||||||
.limit(1);
|
.limit(1);
|
||||||
|
|
||||||
if (!exitNode) {
|
if (!exitNode) {
|
||||||
logger.warn(
|
logger.debug(
|
||||||
`Exit node not found for site ${site.siteId} so there is no reason to update clients because it must be offline`
|
`Exit node not found for site ${site.siteId} so there is no reason to update clients because it must be offline`
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!site.publicKey) {
|
if (!site.publicKey) {
|
||||||
logger.warn(
|
logger.debug(
|
||||||
`Site publicKey not set for site ${site.siteId} so cannot add peers to clients`
|
`Site publicKey not set for site ${site.siteId} so cannot add peers to clients`
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
@@ -735,7 +735,7 @@ async function handleMessagesForSiteClients(
|
|||||||
.where(eq(newts.siteId, siteId))
|
.where(eq(newts.siteId, siteId))
|
||||||
.limit(1);
|
.limit(1);
|
||||||
if (!newt) {
|
if (!newt) {
|
||||||
logger.warn(
|
logger.debug(
|
||||||
`Newt not found for site ${siteId} so cannot add peers to clients`
|
`Newt not found for site ${siteId} so cannot add peers to clients`
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user