Skip to content

Commit a05d397

Browse files
authored
reduce logs when environment=test (#503)
* reduce logs when environment=test * add changeset
1 parent 9c12ca8 commit a05d397

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changeset/open-chicken-camp.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@inkeep/agents-cli": patch
3+
"@inkeep/agents-manage-api": patch
4+
"@inkeep/agents-manage-ui": patch
5+
"@inkeep/agents-run-api": patch
6+
"@inkeep/agents-core": patch
7+
"@inkeep/agents-sdk": patch
8+
"@inkeep/create-agents": patch
9+
---
10+
11+
reduce log spam during tests runs

packages/agents-core/src/utils/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class PinoLogger {
3232
) {
3333
this.options = {
3434
name: this.name,
35-
level: process.env.LOG_LEVEL || 'info',
35+
level: process.env.LOG_LEVEL || (process.env.ENVIRONMENT === 'test' ? 'silent' : 'info'),
3636
serializers: {
3737
obj: (value: any) => ({ ...value }),
3838
},

0 commit comments

Comments
 (0)