Skip to content

Commit

Permalink
Introduce Debug Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed May 29, 2022
1 parent 539080b commit 9277a5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const initDB = async () => {
localDataCenter: Globals.DB_DATACENTER || 'datacenter1',
keyspace: 'system',
},
debug: false,
debug: process.env.DEBUG == 'true' || false,
});

log.database('Awaiting Connection');
Expand Down
2 changes: 1 addition & 1 deletion src/routes/generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const GenericRoute: FastifyPluginAsync<{}> = async (router) => {
}
);

log.debug('site_data', { site_data });
log.debug('site_data', { site_data, host: request.hostname });

/* If site does not exist, send 404 */
if (!site_data) {
Expand Down

0 comments on commit 9277a5b

Please sign in to comment.