From da52db56396f930cb199496b78a8e0a086820a3e Mon Sep 17 00:00:00 2001 From: soulgalore Date: Mon, 19 May 2025 19:30:57 +0200 Subject: [PATCH] Use the instantiated log --- lib/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index f059e4c..bde2591 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,3 @@ -import { getLogger } from '@sitespeed.io/log'; import dayjs from 'dayjs'; import { SitespeedioPlugin } from '@sitespeed.io/plugin'; @@ -10,11 +9,11 @@ import { InfluxDBDataGenerator as DataGenerator } from './data-generator.js'; import { throwIfMissing, isEmpty } from './util.js'; import { getInfluxdbOptions } from './cli.js'; -const log = getLogger('sitespeedio.plugin.influxdb'); - +let log; export default class InfluxDBPlugin extends SitespeedioPlugin { constructor(options, context, queue) { super({ name: 'influxdb', options, context, queue }); + log = super.getLog(); } open(context, options) {