diff --git a/.changeset/angry-queens-reflect.md b/.changeset/angry-queens-reflect.md new file mode 100644 index 000000000000..566f001cc726 --- /dev/null +++ b/.changeset/angry-queens-reflect.md @@ -0,0 +1,6 @@ +--- +"@eth-optimism/core-utils": patch +"@eth-optimism/data-transport-layer": patch +--- + +added extra logs to base-service / dtl to improve observability diff --git a/packages/core-utils/src/base-service.ts b/packages/core-utils/src/base-service.ts index f0bfd481b568..b9c68ece6ed1 100644 --- a/packages/core-utils/src/base-service.ts +++ b/packages/core-utils/src/base-service.ts @@ -36,7 +36,9 @@ export class BaseService { this.logger.info('Service is initializing...') await this._init() - this.logger.info('Service has initialized.') + this.logger.info('Service has initialized.', { + options: this.options, + }) this.initialized = true } diff --git a/packages/data-transport-layer/src/services/main/service.ts b/packages/data-transport-layer/src/services/main/service.ts index 62ce6d06d292..11aab2980ccf 100644 --- a/packages/data-transport-layer/src/services/main/service.ts +++ b/packages/data-transport-layer/src/services/main/service.ts @@ -54,6 +54,8 @@ export class L1DataTransportService extends BaseService { + this.logger.info('Initializing L1 Data Transport Service...') + this.state.db = level(this.options.dbPath) await this.state.db.open() diff --git a/packages/data-transport-layer/src/services/server/service.ts b/packages/data-transport-layer/src/services/server/service.ts index 1b0b618df1bd..089b84dc26ad 100644 --- a/packages/data-transport-layer/src/services/server/service.ts +++ b/packages/data-transport-layer/src/services/server/service.ts @@ -130,6 +130,11 @@ export class L1TransportServer extends BaseService { url: req.url, elapsed, }) + this.logger.debug('Response body', { + method: req.method, + url: req.url, + body: json, + }) return res.json(json) } catch (e) { const elapsed = Date.now() - start