mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-27 01:55:26 +02:00
Refactor Class Name Logging (#4426)
* Add className property to various LLM and embedder classes to fix logging bug after minification * Fix bug with this.log method by applying the missing private field symbol
This commit is contained in:
@@ -8,6 +8,7 @@ class PostgresSQLConnector {
|
||||
schema: null,
|
||||
}
|
||||
) {
|
||||
this.className = "PostgresSQLConnector";
|
||||
this.connectionString = config.connectionString;
|
||||
this.schema = config.schema || "public";
|
||||
this._client = new pgSql.Client({
|
||||
@@ -34,7 +35,7 @@ class PostgresSQLConnector {
|
||||
result.rows = query.rows;
|
||||
result.count = query.rowCount;
|
||||
} catch (err) {
|
||||
console.log(this.constructor.name, err);
|
||||
console.log(this.className, err);
|
||||
result.error = err.message;
|
||||
} finally {
|
||||
// Check client is connected before closing since we use this for validation
|
||||
|
||||
Reference in New Issue
Block a user