Skip to content

Commit

Permalink
import mock insights
Browse files Browse the repository at this point in the history
  • Loading branch information
ljones140 committed Oct 17, 2024
1 parent 5c4053a commit 4edc57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/logging/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config = require('painless-config')
const appInsights = require('applicationinsights')
const aiLogger = require('winston-azure-application-insights').AzureApplicationInsightsLogger
const winston = require('winston')
const mockInsights = require('./mockInsights')
const MockInsights = require('./mockInsights')

function factory(options) {
const realOptions = options || {
Expand All @@ -15,7 +15,7 @@ function factory(options) {
}

if (!realOptions.key || realOptions.key === 'mock') {
mockInsights.setup(realOptions.key || 'mock', realOptions.echo)
MockInsights.setup(realOptions.key || 'mock', realOptions.echo)
appInsights.defaultClient = new MockInsights(appInsights.defaultClient)
} else {
appInsights.setup(key).setAutoCollectPerformance(false).setAutoCollectDependencies(true).start()

Check failure on line 21 in providers/logging/logger.js

View workflow job for this annotation

GitHub Actions / Run tests

'key' is not defined
Expand Down

0 comments on commit 4edc57d

Please sign in to comment.