WIP: more proper logging
This commit is contained in:
parent
80acec720c
commit
b38ab19c3e
1
bunfig.toml
Normal file
1
bunfig.toml
Normal file
@ -0,0 +1 @@
|
||||
logLevel = "info"
|
@ -30,7 +30,7 @@ export async function fetchOpnsenseServer() {
|
||||
const uuid = servers.rows.find((server) => server.name === opnsenseIfname)?.uuid;
|
||||
assert(uuid, 'Failed to find server UUID for OPNsense WireGuard server');
|
||||
serverUuid = uuid;
|
||||
console.log('OPNsense WireGuard server UUID:', serverUuid);
|
||||
console.info('OPNsense WireGuard server UUID:', serverUuid);
|
||||
|
||||
const resServerInfo = await fetch(
|
||||
`${opnsenseUrl}/api/wireguard/client/get_server_info/${serverUuid}`,
|
||||
|
@ -35,7 +35,7 @@ export async function GET(event: RequestEvent): Promise<Response> {
|
||||
});
|
||||
}
|
||||
const claims = decodeIdToken(tokens.idToken()) as { sub: string, preferred_username: string, name: string };
|
||||
console.log("claims", claims);
|
||||
console.info("claims", claims);
|
||||
const userId: string = claims.sub;
|
||||
const username: string = claims.preferred_username;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user