feat: implement logging enhancements; add projectId and queryId to log entity; update query and logger services for improved logging; refactor query execution to support call stack tracking
This commit is contained in:
@ -13,6 +13,7 @@ import {
|
||||
import { Database } from "../../databaseManager/entities/database.entity";
|
||||
import { FunctionEntity } from "../../query/entities/function.entity";
|
||||
import { RedisNode } from "../../redisManager/entities/redis.node.entity";
|
||||
import { Log } from "../../query/logger/entities/log.entity";
|
||||
|
||||
@Entity("project")
|
||||
export class Project {
|
||||
@ -29,6 +30,9 @@ export class Project {
|
||||
@JoinColumn()
|
||||
database: Database;
|
||||
|
||||
@OneToMany(() => Log, (log) => log.project)
|
||||
logs: Log[];
|
||||
|
||||
@OneToMany(() => Query, (query) => query.project)
|
||||
queries: Query[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user