mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 01:40:51 +00:00
Add request log and uncatch error tip. (#1531)
This commit is contained in:
@@ -11,6 +11,7 @@ import { mongoSessionRun } from '@fastgpt/service/common/mongo/sessionRun';
|
||||
import { initGlobal } from './common/system';
|
||||
import { startMongoWatch } from './common/system/volumnMongoWatch';
|
||||
import { startTrainingQueue } from './core/dataset/training/utils';
|
||||
import { systemStartCb } from '@fastgpt/service/common/system/tools';
|
||||
|
||||
/**
|
||||
* connect MongoDB and init data
|
||||
@@ -21,6 +22,7 @@ export function connectToDatabase(): Promise<void> {
|
||||
initGlobal();
|
||||
},
|
||||
afterHook: async () => {
|
||||
systemStartCb();
|
||||
// init system config
|
||||
getInitConfig();
|
||||
//init vector database, init root user
|
||||
|
Reference in New Issue
Block a user