change logging

This commit is contained in:
miloschwartz
2026-04-21 20:51:59 -07:00
parent 4df3613df7
commit 7f5c164e16
6 changed files with 10 additions and 10 deletions

View File

@@ -121,7 +121,7 @@ export function createApiServer() {
const httpServer = apiServer.listen(externalPort, (err?: any) => {
if (err) throw err;
logger.info(
`API server is running on http://localhost:${externalPort}`
`Dashboard API server is running on http://localhost:${externalPort}`
);
});

View File

@@ -36,7 +36,7 @@ export function createInternalServer() {
internalServer.listen(internalPort, (err?: any) => {
if (err) throw err;
logger.info(
`Internal server is running on http://localhost:${internalPort}`
`Internal API server is running on http://localhost:${internalPort}`
);
});

View File

@@ -72,7 +72,7 @@ class TelemetryClient {
logger.debug("Successfully sent analytics data");
});
},
48 * 60 * 60 * 1000
336 * 60 * 60 * 1000
);
this.collectAndSendAnalytics().catch((err) => {

View File

@@ -29,7 +29,7 @@ export async function createNextServer() {
nextServer.listen(nextPort, (err?: any) => {
if (err) throw err;
logger.info(
`Next.js server is running on http://localhost:${nextPort}`
`Dashboard Web UI server is running on http://localhost:${nextPort}`
);
});

View File

@@ -89,7 +89,7 @@ async function pushCertUpdateToAffectedNewts(
return;
}
logger.info(
logger.debug(
`acmeCertSync: pushing cert update to ${affectedResources.length} affected site resource(s) for domain "${domain}"`
);
@@ -187,7 +187,7 @@ async function pushCertUpdateToAffectedNewts(
newt.version
);
logger.info(
logger.debug(
`acmeCertSync: pushed cert update to newt for site ${siteId}, resource ${resource.siteResourceId}`
);
}
@@ -400,7 +400,7 @@ async function syncAcmeCerts(
})
.where(eq(certificates.domain, domain));
logger.info(
logger.debug(
`acmeCertSync: updated certificate for ${domain} (expires ${expiresAt ? new Date(expiresAt * 1000).toISOString() : "unknown"})`
);
@@ -423,7 +423,7 @@ async function syncAcmeCerts(
wildcard
});
logger.info(
logger.debug(
`acmeCertSync: inserted new certificate for ${domain} (expires ${expiresAt ? new Date(expiresAt * 1000).toISOString() : "unknown"})`
);
@@ -461,7 +461,7 @@ export function initAcmeCertSync(): void {
const resolver = privateConfigData.acme?.resolver ?? "letsencrypt";
const intervalMs = privateConfigData.acme?.sync_interval_ms ?? 5000;
logger.info(
logger.debug(
`acmeCertSync: starting ACME cert sync from "${acmeJsonPath}" using resolver "${resolver}" every ${intervalMs}ms`
);

View File

@@ -381,7 +381,7 @@ export function startPingAccumulator(): void {
// Don't prevent the process from exiting
flushTimer.unref();
logger.info(
logger.debug(
`Ping accumulator started (flush interval: ${FLUSH_INTERVAL_MS}ms)`
);
}