fix: remove console log in backend

This commit is contained in:
Lin, Hung-Shin committed 2023-11-21 10:15:06 +08:00
1 parent 82d1004ecf
commit 0d886a686e
3 files changed
+7 -5

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ import path from 'path'
import yaml from 'yaml'
import { Quest } from '@linux-odyssey/models'
import logger from './logger'
const questDirectory = path.join(process.cwd(), '..', 'quests')
@@ -50,7 +51,7 @@ export function loadAndUpdateQuests() {
}
)
} catch (error) {
console.error(`Error parsing quest ${id}:`, error)
logger.error(`Error parsing quest ${id}:`, error)
throw error
}
})