mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
fix: remove console log in backend
This commit is contained in:
1 parent
82d1004ecf
commit
0d886a686e
3 files changed
+7
-5
No files matched your search
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user