@elizaos/plugin-sql 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +90 -139
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -556,16 +556,14 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
556
556
|
const backoffDelay = Math.min(this.baseDelay * 2 ** (attempt - 1), this.maxDelay);
|
|
557
557
|
const jitter = Math.random() * this.jitterMax;
|
|
558
558
|
const delay = backoffDelay + jitter;
|
|
559
|
-
logger.warn(
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
});
|
|
559
|
+
logger.warn(
|
|
560
|
+
`Database operation failed (attempt ${attempt}/${this.maxRetries}): ${error instanceof Error ? error.message : String(error)}, nextRetryIn: ${(delay / 1e3).toFixed(1)}s`
|
|
561
|
+
);
|
|
563
562
|
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
564
563
|
} else {
|
|
565
|
-
logger.error(
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
});
|
|
564
|
+
logger.error(
|
|
565
|
+
`Max retry attempts reached: ${error instanceof Error ? error.message : String(error)}, totalAttempts: ${attempt}`
|
|
566
|
+
);
|
|
569
567
|
throw error instanceof Error ? error : new Error(String(error));
|
|
570
568
|
}
|
|
571
569
|
}
|
|
@@ -647,10 +645,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
647
645
|
}
|
|
648
646
|
const existing = conditions.length > 0 ? await this.db.select({ id: agentTable.id }).from(agentTable).where(or(...conditions)).limit(1) : [];
|
|
649
647
|
if (existing.length > 0) {
|
|
650
|
-
logger.warn(
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
});
|
|
648
|
+
logger.warn(
|
|
649
|
+
`Attempted to create an agent with a duplicate ID or name. ID: ${agent.id}, name: ${agent.name}`
|
|
650
|
+
);
|
|
654
651
|
return false;
|
|
655
652
|
}
|
|
656
653
|
await this.db.transaction(async (tx) => {
|
|
@@ -660,16 +657,12 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
660
657
|
updatedAt: new Date(agent.updatedAt || Date.now())
|
|
661
658
|
});
|
|
662
659
|
});
|
|
663
|
-
logger.debug(
|
|
664
|
-
agentId: agent.id
|
|
665
|
-
});
|
|
660
|
+
logger.debug(`Agent created successfully: ${agent.id}`);
|
|
666
661
|
return true;
|
|
667
662
|
} catch (error) {
|
|
668
|
-
logger.error(
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
agent
|
|
672
|
-
});
|
|
663
|
+
logger.error(
|
|
664
|
+
`Error creating agent: ${error instanceof Error ? error.message : String(error)}, agentId: ${agent.id}`
|
|
665
|
+
);
|
|
673
666
|
return false;
|
|
674
667
|
}
|
|
675
668
|
});
|
|
@@ -709,16 +702,12 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
709
702
|
}
|
|
710
703
|
await tx.update(agentTable).set(updateData).where(eq(agentTable.id, agentId));
|
|
711
704
|
});
|
|
712
|
-
logger.debug(
|
|
713
|
-
agentId
|
|
714
|
-
});
|
|
705
|
+
logger.debug(`Agent updated successfully: ${agentId}`);
|
|
715
706
|
return true;
|
|
716
707
|
} catch (error) {
|
|
717
|
-
logger.error(
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
agent
|
|
721
|
-
});
|
|
708
|
+
logger.error(
|
|
709
|
+
`Error updating agent: ${error instanceof Error ? error.message : String(error)}, agentId: ${agentId}`
|
|
710
|
+
);
|
|
722
711
|
return false;
|
|
723
712
|
}
|
|
724
713
|
});
|
|
@@ -788,7 +777,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
788
777
|
);
|
|
789
778
|
return true;
|
|
790
779
|
} catch (error) {
|
|
791
|
-
logger.error(
|
|
780
|
+
logger.error(
|
|
781
|
+
`[DB] Failed to delete agent ${agentId}: ${error instanceof Error ? error.message : String(error)}`
|
|
782
|
+
);
|
|
792
783
|
if (error instanceof Error) {
|
|
793
784
|
logger.error(`[DB] Error details: ${error.name} - ${error.message}`);
|
|
794
785
|
logger.error(`[DB] Stack trace: ${error.stack}`);
|
|
@@ -811,9 +802,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
811
802
|
const result = await this.db.select({ count: count() }).from(agentTable);
|
|
812
803
|
return result[0]?.count || 0;
|
|
813
804
|
} catch (error) {
|
|
814
|
-
logger.error(
|
|
815
|
-
|
|
816
|
-
|
|
805
|
+
logger.error(
|
|
806
|
+
`Error counting agents: ${error instanceof Error ? error.message : String(error)}`
|
|
807
|
+
);
|
|
817
808
|
return 0;
|
|
818
809
|
}
|
|
819
810
|
});
|
|
@@ -829,9 +820,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
829
820
|
await this.db.delete(agentTable);
|
|
830
821
|
logger.success("Successfully cleaned up agent table");
|
|
831
822
|
} catch (error) {
|
|
832
|
-
logger.error(
|
|
833
|
-
|
|
834
|
-
|
|
823
|
+
logger.error(
|
|
824
|
+
`Error cleaning up agent table: ${error instanceof Error ? error.message : String(error)}`
|
|
825
|
+
);
|
|
835
826
|
throw error;
|
|
836
827
|
}
|
|
837
828
|
});
|
|
@@ -925,11 +916,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
925
916
|
return true;
|
|
926
917
|
});
|
|
927
918
|
} catch (error) {
|
|
928
|
-
logger.error(
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
name: entities[0].metadata?.name
|
|
932
|
-
});
|
|
919
|
+
logger.error(
|
|
920
|
+
`Error creating entity: ${error instanceof Error ? error.message : String(error)}, entityId: ${entities[0].id}, name: ${entities[0].metadata?.name}`
|
|
921
|
+
);
|
|
933
922
|
logger.trace(error);
|
|
934
923
|
return false;
|
|
935
924
|
}
|
|
@@ -952,10 +941,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
952
941
|
}
|
|
953
942
|
return true;
|
|
954
943
|
} catch (error) {
|
|
955
|
-
logger.error(
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
});
|
|
944
|
+
logger.error(
|
|
945
|
+
`Error ensuring entity exists: ${error instanceof Error ? error.message : String(error)}, entityId: ${entity.id}`
|
|
946
|
+
);
|
|
959
947
|
return false;
|
|
960
948
|
}
|
|
961
949
|
}
|
|
@@ -1126,7 +1114,7 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1126
1114
|
return this.withDatabase(async () => {
|
|
1127
1115
|
await this.db.insert(componentTable).values({
|
|
1128
1116
|
...component,
|
|
1129
|
-
createdAt: new Date(
|
|
1117
|
+
createdAt: /* @__PURE__ */ new Date()
|
|
1130
1118
|
});
|
|
1131
1119
|
return true;
|
|
1132
1120
|
});
|
|
@@ -1140,7 +1128,7 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1140
1128
|
return this.withDatabase(async () => {
|
|
1141
1129
|
await this.db.update(componentTable).set({
|
|
1142
1130
|
...component,
|
|
1143
|
-
|
|
1131
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
1144
1132
|
}).where(eq(componentTable.id, component.id));
|
|
1145
1133
|
});
|
|
1146
1134
|
}
|
|
@@ -1371,11 +1359,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1371
1359
|
levenshtein_score: Number(row.levenshtein_score)
|
|
1372
1360
|
})).filter((row) => Array.isArray(row.embedding));
|
|
1373
1361
|
} catch (error) {
|
|
1374
|
-
logger.error(
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
fieldName: opts.query_field_name
|
|
1378
|
-
});
|
|
1362
|
+
logger.error(
|
|
1363
|
+
`Error in getCachedEmbeddings: ${error instanceof Error ? error.message : String(error)}, tableName: ${opts.query_table_name}, fieldName: ${opts.query_field_name}`
|
|
1364
|
+
);
|
|
1379
1365
|
if (error instanceof Error && error.message === "levenshtein argument exceeds maximum length of 255 characters") {
|
|
1380
1366
|
return [];
|
|
1381
1367
|
}
|
|
@@ -1406,12 +1392,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1406
1392
|
});
|
|
1407
1393
|
});
|
|
1408
1394
|
} catch (error) {
|
|
1409
|
-
logger.error(
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
roomId: params.roomId,
|
|
1413
|
-
entityId: params.entityId
|
|
1414
|
-
});
|
|
1395
|
+
logger.error(
|
|
1396
|
+
`Failed to create log entry: ${error instanceof Error ? error.message : String(error)}, type: ${params.type}, roomId: ${params.roomId}, entityId: ${params.entityId}`
|
|
1397
|
+
);
|
|
1415
1398
|
throw error;
|
|
1416
1399
|
}
|
|
1417
1400
|
});
|
|
@@ -1583,17 +1566,13 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1583
1566
|
* @returns {Promise<UUID>} A Promise that resolves to the ID of the created memory.
|
|
1584
1567
|
*/
|
|
1585
1568
|
async createMemory(memory, tableName) {
|
|
1586
|
-
logger.debug(
|
|
1587
|
-
memoryId: memory.id,
|
|
1588
|
-
|
|
1589
|
-
contentLength: memory.content?.text?.length
|
|
1590
|
-
});
|
|
1569
|
+
logger.debug(
|
|
1570
|
+
`DrizzleAdapter createMemory: memoryId: ${memory.id}, embeddingLength: ${memory.embedding?.length}, contentLength: ${memory.content?.text?.length}`
|
|
1571
|
+
);
|
|
1591
1572
|
const memoryId = memory.id ?? v4();
|
|
1592
1573
|
const existing = await this.getMemoryById(memoryId);
|
|
1593
1574
|
if (existing) {
|
|
1594
|
-
logger.debug(
|
|
1595
|
-
memoryId
|
|
1596
|
-
});
|
|
1575
|
+
logger.debug(`Memory already exists, skipping creation: ${memoryId}`);
|
|
1597
1576
|
return memoryId;
|
|
1598
1577
|
}
|
|
1599
1578
|
let isUnique = true;
|
|
@@ -1650,10 +1629,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1650
1629
|
async updateMemory(memory) {
|
|
1651
1630
|
return this.withDatabase(async () => {
|
|
1652
1631
|
try {
|
|
1653
|
-
logger.debug(
|
|
1654
|
-
memoryId: memory.id,
|
|
1655
|
-
|
|
1656
|
-
});
|
|
1632
|
+
logger.debug(
|
|
1633
|
+
`Updating memory: memoryId: ${memory.id}, hasEmbedding: ${!!memory.embedding}`
|
|
1634
|
+
);
|
|
1657
1635
|
await this.db.transaction(async (tx) => {
|
|
1658
1636
|
if (memory.content) {
|
|
1659
1637
|
const contentToUpdate = typeof memory.content === "string" ? memory.content : JSON.stringify(memory.content ?? {});
|
|
@@ -1687,15 +1665,12 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1687
1665
|
}
|
|
1688
1666
|
}
|
|
1689
1667
|
});
|
|
1690
|
-
logger.debug(
|
|
1691
|
-
memoryId: memory.id
|
|
1692
|
-
});
|
|
1668
|
+
logger.debug(`Memory updated successfully: ${memory.id}`);
|
|
1693
1669
|
return true;
|
|
1694
1670
|
} catch (error) {
|
|
1695
|
-
logger.error(
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
});
|
|
1671
|
+
logger.error(
|
|
1672
|
+
`Error updating memory: ${error instanceof Error ? error.message : String(error)}, memoryId: ${memory.id}`
|
|
1673
|
+
);
|
|
1699
1674
|
return false;
|
|
1700
1675
|
}
|
|
1701
1676
|
});
|
|
@@ -1712,9 +1687,7 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1712
1687
|
await tx.delete(embeddingTable).where(eq(embeddingTable.memoryId, memoryId));
|
|
1713
1688
|
await tx.delete(memoryTable).where(eq(memoryTable.id, memoryId));
|
|
1714
1689
|
});
|
|
1715
|
-
logger.debug(
|
|
1716
|
-
memoryId
|
|
1717
|
-
});
|
|
1690
|
+
logger.debug(`Memory and related fragments removed successfully: ${memoryId}`);
|
|
1718
1691
|
});
|
|
1719
1692
|
}
|
|
1720
1693
|
/**
|
|
@@ -1740,9 +1713,7 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1740
1713
|
await tx.delete(memoryTable).where(inArray(memoryTable.id, batch));
|
|
1741
1714
|
}
|
|
1742
1715
|
});
|
|
1743
|
-
logger.debug(
|
|
1744
|
-
count: memoryIds.length
|
|
1745
|
-
});
|
|
1716
|
+
logger.debug(`Batch memory deletion completed successfully: ${memoryIds.length}`);
|
|
1746
1717
|
});
|
|
1747
1718
|
}
|
|
1748
1719
|
/**
|
|
@@ -1757,10 +1728,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1757
1728
|
const fragmentIds = fragmentsToDelete.map((f) => f.id);
|
|
1758
1729
|
await tx.delete(embeddingTable).where(inArray(embeddingTable.memoryId, fragmentIds));
|
|
1759
1730
|
await tx.delete(memoryTable).where(inArray(memoryTable.id, fragmentIds));
|
|
1760
|
-
logger.debug(
|
|
1761
|
-
documentId,
|
|
1762
|
-
|
|
1763
|
-
});
|
|
1731
|
+
logger.debug(
|
|
1732
|
+
`Deleted related fragments: documentId: ${documentId}, fragmentCount: ${fragmentsToDelete.length}`
|
|
1733
|
+
);
|
|
1764
1734
|
}
|
|
1765
1735
|
}
|
|
1766
1736
|
/**
|
|
@@ -1790,7 +1760,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1790
1760
|
await this.db.transaction(async (tx) => {
|
|
1791
1761
|
const rows = await tx.select({ id: memoryTable.id }).from(memoryTable).where(and(eq(memoryTable.roomId, roomId), eq(memoryTable.type, tableName)));
|
|
1792
1762
|
const ids = rows.map((r) => r.id);
|
|
1793
|
-
logger.debug(
|
|
1763
|
+
logger.debug(
|
|
1764
|
+
`[deleteAllMemories] memory IDs to delete: roomId: ${roomId}, tableName: ${tableName}, ids: ${JSON.stringify(ids)}`
|
|
1765
|
+
);
|
|
1794
1766
|
if (ids.length === 0) {
|
|
1795
1767
|
return;
|
|
1796
1768
|
}
|
|
@@ -1802,7 +1774,7 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1802
1774
|
);
|
|
1803
1775
|
await tx.delete(memoryTable).where(and(eq(memoryTable.roomId, roomId), eq(memoryTable.type, tableName)));
|
|
1804
1776
|
});
|
|
1805
|
-
logger.debug(
|
|
1777
|
+
logger.debug(`All memories removed successfully: roomId: ${roomId}, tableName: ${tableName}`);
|
|
1806
1778
|
});
|
|
1807
1779
|
}
|
|
1808
1780
|
/**
|
|
@@ -1961,12 +1933,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1961
1933
|
}).onConflictDoNothing();
|
|
1962
1934
|
return true;
|
|
1963
1935
|
} catch (error) {
|
|
1964
|
-
logger.error(
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
roomId,
|
|
1968
|
-
agentId: this.agentId
|
|
1969
|
-
});
|
|
1936
|
+
logger.error(
|
|
1937
|
+
`Error adding participant to room: ${error instanceof Error ? error.message : String(error)}, entityId: ${entityId}, roomId: ${roomId}, agentId: ${this.agentId}`
|
|
1938
|
+
);
|
|
1970
1939
|
return false;
|
|
1971
1940
|
}
|
|
1972
1941
|
});
|
|
@@ -1983,12 +1952,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
1983
1952
|
logger.debug(entityIds.length, "Entities linked successfully");
|
|
1984
1953
|
return true;
|
|
1985
1954
|
} catch (error) {
|
|
1986
|
-
logger.error(
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
roomId,
|
|
1990
|
-
agentId: this.agentId
|
|
1991
|
-
});
|
|
1955
|
+
logger.error(
|
|
1956
|
+
`Error adding participants to room: ${error instanceof Error ? error.message : String(error)}, entityIdSample: ${entityIds[0]}, roomId: ${roomId}, agentId: ${this.agentId}`
|
|
1957
|
+
);
|
|
1992
1958
|
return false;
|
|
1993
1959
|
}
|
|
1994
1960
|
});
|
|
@@ -2008,18 +1974,14 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
2008
1974
|
).returning();
|
|
2009
1975
|
});
|
|
2010
1976
|
const removed = result.length > 0;
|
|
2011
|
-
logger.debug(
|
|
2012
|
-
entityId,
|
|
2013
|
-
|
|
2014
|
-
removed
|
|
2015
|
-
});
|
|
1977
|
+
logger.debug(
|
|
1978
|
+
`Participant ${removed ? "removed" : "not found"}: entityId: ${entityId}, roomId: ${roomId}, removed: ${removed}`
|
|
1979
|
+
);
|
|
2016
1980
|
return removed;
|
|
2017
1981
|
} catch (error) {
|
|
2018
|
-
logger.error(
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
roomId
|
|
2022
|
-
});
|
|
1982
|
+
logger.error(
|
|
1983
|
+
`Error removing participant from room: ${error instanceof Error ? error.message : String(error)}, entityId: ${entityId}, roomId: ${roomId}`
|
|
1984
|
+
);
|
|
2023
1985
|
return false;
|
|
2024
1986
|
}
|
|
2025
1987
|
});
|
|
@@ -2095,12 +2057,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
2095
2057
|
);
|
|
2096
2058
|
});
|
|
2097
2059
|
} catch (error) {
|
|
2098
|
-
logger.error(
|
|
2099
|
-
roomId,
|
|
2100
|
-
|
|
2101
|
-
state,
|
|
2102
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2103
|
-
});
|
|
2060
|
+
logger.error(
|
|
2061
|
+
`Error setting participant follow state: roomId: ${roomId}, entityId: ${entityId}, state: ${state}, error: ${error instanceof Error ? error.message : String(error)}`
|
|
2062
|
+
);
|
|
2104
2063
|
throw error;
|
|
2105
2064
|
}
|
|
2106
2065
|
});
|
|
@@ -2129,10 +2088,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
2129
2088
|
await this.db.insert(relationshipTable).values(saveParams);
|
|
2130
2089
|
return true;
|
|
2131
2090
|
} catch (error) {
|
|
2132
|
-
logger.error(
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
});
|
|
2091
|
+
logger.error(
|
|
2092
|
+
`Error creating relationship: ${error instanceof Error ? error.message : String(error)}, saveParams: ${JSON.stringify(saveParams)}`
|
|
2093
|
+
);
|
|
2136
2094
|
return false;
|
|
2137
2095
|
}
|
|
2138
2096
|
});
|
|
@@ -2150,10 +2108,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
2150
2108
|
metadata: relationship.metadata || {}
|
|
2151
2109
|
}).where(eq(relationshipTable.id, relationship.id));
|
|
2152
2110
|
} catch (error) {
|
|
2153
|
-
logger.error(
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
});
|
|
2111
|
+
logger.error(
|
|
2112
|
+
`Error updating relationship: ${error instanceof Error ? error.message : String(error)}, relationship: ${JSON.stringify(relationship)}`
|
|
2113
|
+
);
|
|
2157
2114
|
throw error;
|
|
2158
2115
|
}
|
|
2159
2116
|
});
|
|
@@ -2238,11 +2195,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
2238
2195
|
}
|
|
2239
2196
|
return void 0;
|
|
2240
2197
|
} catch (error) {
|
|
2241
|
-
logger.error(
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
agentId: this.agentId
|
|
2245
|
-
});
|
|
2198
|
+
logger.error(
|
|
2199
|
+
`Error fetching cache: ${error instanceof Error ? error.message : String(error)}, key: ${key}, agentId: ${this.agentId}`
|
|
2200
|
+
);
|
|
2246
2201
|
return void 0;
|
|
2247
2202
|
}
|
|
2248
2203
|
});
|
|
@@ -2268,11 +2223,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
2268
2223
|
});
|
|
2269
2224
|
return true;
|
|
2270
2225
|
} catch (error) {
|
|
2271
|
-
logger.error(
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
agentId: this.agentId
|
|
2275
|
-
});
|
|
2226
|
+
logger.error(
|
|
2227
|
+
`Error setting cache: ${error instanceof Error ? error.message : String(error)}, key: ${key}, agentId: ${this.agentId}`
|
|
2228
|
+
);
|
|
2276
2229
|
return false;
|
|
2277
2230
|
}
|
|
2278
2231
|
});
|
|
@@ -2290,11 +2243,9 @@ var BaseDrizzleAdapter = class extends DatabaseAdapter {
|
|
|
2290
2243
|
});
|
|
2291
2244
|
return true;
|
|
2292
2245
|
} catch (error) {
|
|
2293
|
-
logger.error(
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
agentId: this.agentId
|
|
2297
|
-
});
|
|
2246
|
+
logger.error(
|
|
2247
|
+
`Error deleting cache: ${error instanceof Error ? error.message : String(error)}, key: ${key}, agentId: ${this.agentId}`
|
|
2248
|
+
);
|
|
2298
2249
|
return false;
|
|
2299
2250
|
}
|
|
2300
2251
|
});
|