Fix logging placement in increment-views
This commit is contained in:
parent
2a4d4bcd9c
commit
35e59b5f8c
1 changed files with 3 additions and 4 deletions
|
|
@ -17,11 +17,10 @@ function generateVisitorHash(ip: string, userAgent: string): string {
|
|||
}
|
||||
|
||||
export const POST: APIRoute = async ({ request, url }) => {
|
||||
console.log('[Increment Views] PB_URL:', import.meta.env.POCKETBASE_URL);
|
||||
console.log('[Increment Views] PB_ADMIN_EMAIL:', import.meta.env.PB_ADMIN_EMAIL);
|
||||
console.log('[Increment Views] PB_ADMIN_PASSWORD:', import.meta.env.PB_ADMIN_PASSWORD ? '***SET***' : '***NOT SET***');
|
||||
|
||||
try {
|
||||
console.log('[Increment Views] PB_URL:', import.meta.env.POCKETBASE_URL);
|
||||
console.log('[Increment Views] PB_ADMIN_EMAIL:', import.meta.env.PB_ADMIN_EMAIL);
|
||||
console.log('[Increment Views] PB_ADMIN_PASSWORD:', import.meta.env.PB_ADMIN_PASSWORD ? '***SET***' : '***NOT SET***');
|
||||
console.log('[Increment Views] Calling initPbServer...');
|
||||
const pb = await initPbServer();
|
||||
console.log('[Increment Views] initPbServer done, auth valid:', pb.authStore.isValid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue