diff --git a/src/database.ts b/src/database.ts index 55b16b36..dd7dc215 100644 --- a/src/database.ts +++ b/src/database.ts @@ -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'); diff --git a/src/routes/generic.ts b/src/routes/generic.ts index 9f15cfd1..0d06500b 100644 --- a/src/routes/generic.ts +++ b/src/routes/generic.ts @@ -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) {