Skip to content

Commit

Permalink
fix logger storage (#1883)
Browse files Browse the repository at this point in the history
- **Fix logger storage**
- **changeset**
  • Loading branch information
TheIsrael1 authored Feb 13, 2025
1 parent 99f1847 commit 1420ae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-weeks-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mastra/core': patch
---

Fix storage logger
7 changes: 1 addition & 6 deletions packages/core/src/mastra/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,12 @@ export class Mastra<
*/
// if storage is a libsql instance, we need to default the telemetry exporter to OTLPStorageExporter
if (storage instanceof DefaultStorage) {
const logger = config?.logger
? this.logger
: createLogger({
level: 'debug',
});
const newTelemetry = {
...(config?.telemetry || {}),
export: {
type: 'custom',
exporter: new OTLPStorageExporter({
logger,
logger: this.getLogger(),
storage,
}),
},
Expand Down

0 comments on commit 1420ae2

Please sign in to comment.