Skip to content

Commit

Permalink
remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelsandcogs committed Sep 10, 2024
1 parent 4b33ea0 commit c15a82f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/db/database-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ class DatabaseManager {
}

async initializeDataSource() {
console.log({
NODE_ENV: process.env.NODE_ENV,
TEST_DB_HOST: process.env.TEST_DB_HOST,
TEST_DB_PORT: process.env.TEST_DB_PORT,
TEST_DB_USERNAME: process.env.TEST_DB_USERNAME,
TEST_DB_PASSWORD: process.env.TEST_DB_PASSWORD,
TEST_DB_DATABASE: process.env.TEST_DB_DATABASE
});

this.logger.debug(`DB '${this.dataSource.options.database}' initializing...`);

if (!this.dataSource.isInitialized) {
Expand Down
4 changes: 2 additions & 2 deletions src/route/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,14 @@ router.get(

// Handle errors in the file stream
readable.on('error', (err) => {
console.error('File stream error:', err);
logger.error('File stream error:', err);
res.writeHead(500, { 'Content-Type': 'text/plain' });
res.end('Server Error');
});

// Optionally listen for the end of the stream
readable.on('end', () => {
console.log('File stream ended');
logger.debug('File stream ended');
});
}
);

0 comments on commit c15a82f

Please sign in to comment.