From 1b1d931922cf0eb4103e529deddb203a5efe2442 Mon Sep 17 00:00:00 2001 From: Alex Layton Date: Wed, 26 Jun 2024 10:25:27 -0400 Subject: [PATCH] fix(logs): fix log levels --- package.json | 2 +- src/ListWatch.ts | 3 +-- src/Metadata.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e317090..fd35207 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oada/list-lib", - "version": "6.0.1", + "version": "6.0.2", "description": "Library for processing items in an OADA list", "main": "dist/index.js", "type": "module", diff --git a/src/ListWatch.ts b/src/ListWatch.ts index 04c428b..00fe21c 100755 --- a/src/ListWatch.ts +++ b/src/ListWatch.ts @@ -430,8 +430,7 @@ export class ListWatch { this.#emitter.emit('error', error), ); - log.info(`ListWatch initialized on path: ${this.path}`); - log.trace({ this: this }, 'ListWatch '); + log.debug({ this: this }, 'ListWatch initialized'); return changes; } diff --git a/src/Metadata.ts b/src/Metadata.ts index a1e4d52..ec0ca0c 100755 --- a/src/Metadata.ts +++ b/src/Metadata.ts @@ -175,7 +175,7 @@ export class Metadata { * Create our metadata */ async #createMeta() { - log.info('%s does not exist, posting new resource', this.#path); + log.warn('%s does not exist, posting new resource', this.#path); const { headers: { 'content-location': location },