Skip to content

Commit

Permalink
Debug Logging Sitedata
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed May 29, 2022
1 parent 70916d9 commit 539080b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { DB } from '../database';
import { Site } from '../types/Site.type';
import { getCache, updateCache } from '../util/cache/cache';
import { informationWrap } from '../util/http/information_wrapper';
import { log } from '../util/logging';
import { startAction } from '../util/sentry/createChild';
import { sentryHandle } from '../util/sentry/sentryHandle';

Expand Down Expand Up @@ -79,6 +80,8 @@ export const GenericRoute: FastifyPluginAsync<{}> = async (router) => {
}
);

log.debug('site_data', { site_data });

/* If site does not exist, send 404 */
if (!site_data) {
reply.type('html');
Expand Down

0 comments on commit 539080b

Please sign in to comment.