mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-27 09:57:18 +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:
@@ -28,6 +28,7 @@ class MSSQLConnector {
|
||||
connectionString: null, // we will force into RFC-3986
|
||||
}
|
||||
) {
|
||||
this.className = "MSSQLConnector";
|
||||
this.connectionString = config.connectionString;
|
||||
this._client = null;
|
||||
this.#parseDatabase();
|
||||
@@ -72,7 +73,7 @@ class MSSQLConnector {
|
||||
result.rows = query.recordset;
|
||||
result.count = query.rowsAffected.reduce((sum, a) => sum + a, 0);
|
||||
} 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