Skip to content

Commit e44c061

Browse files
committed
refactore: remove debugging clogs
1 parent d379bdd commit e44c061

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/server/db/connection.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const runMigrations = async () => {
2626
}
2727

2828
const testConnection = async () => {
29-
console.log('Inside test connections')
3029
await sequelize.authenticate()
3130
await runMigrations()
3231
}
@@ -35,7 +34,6 @@ const testConnection = async () => {
3534
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))
3635

3736
export const connectToDatabase = async (attempt = 0): Promise<void | null> => {
38-
console.log('Inside connectToDb')
3937
try {
4038
await testConnection()
4139
} catch (err: any) {

src/server/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,17 @@ const app = express()
1818
app.use(['/api', '/public/api'], (req, res, next) => router(req, res, next))
1919
app.use(['/api', '/public/api'], (_, res) => res.sendStatus(404))
2020

21-
console.log('Before ifs')
2221
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') {
23-
console.log('Inside first if')
2422
const DIST_PATH = path.resolve(
2523
dirname(fileURLToPath(import.meta.url)),
2624
'../../build'
2725
)
28-
console.log('After dist path')
26+
2927
const INDEX_PATH = path.resolve(DIST_PATH, 'index.html')
30-
console.log('After index path')
3128
app.use(express.static(DIST_PATH))
32-
console.log('After static')
3329
app.get('*', (_, res) => res.sendFile(INDEX_PATH))
34-
console.log('After get *')
3530
}
3631

37-
console.log('After first if')
38-
3932
app.listen(PORT, async () => {
4033
await connectToDatabase()
4134
await seed()

0 commit comments

Comments
 (0)