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:
Marcello Fitton
2025-09-25 18:34:19 -07:00
committed by GitHub
parent 473ff9068a
commit 6855bbf695
30 changed files with 60 additions and 30 deletions

View File

@@ -9,6 +9,7 @@ class MySQLConnector {
connectionString: null,
}
) {
this.className = "MySQLConnector";
this.connectionString = config.connectionString;
this._client = null;
this.database_id = this.#parseDatabase();
@@ -39,7 +40,7 @@ class MySQLConnector {
result.rows = query;
result.count = query?.length;
} 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