Skip to content

Commit

Permalink
fix(ConfigManager): add missing log property
Browse files Browse the repository at this point in the history
  • Loading branch information
anderssonjohan committed Jan 24, 2023
1 parent 834777b commit 9843671
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = (robot, _, Settings = require('./lib/settings')) => {
try {
deploymentConfig = await loadYamlFileSystem()
robot.log.debug(`deploymentConfig is ${JSON.stringify(deploymentConfig)}`)
const configManager = new ConfigManager(context, ref)
const configManager = new ConfigManager(context, ref, robot.log)
const runtimeConfig = await configManager.loadGlobalSettingsYaml()
const config = Object.assign({}, deploymentConfig, runtimeConfig)
robot.log.debug(`config for ref ${ref} is ${JSON.stringify(config)}`)
Expand Down
3 changes: 2 additions & 1 deletion lib/configManager.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const path = require('path')
const yaml = require('js-yaml')
module.exports = class ConfigManager {
constructor (context, ref) {
constructor (context, ref, log) {
this.context = context
this.ref = ref
this.log = log
}

/**
Expand Down

0 comments on commit 9843671

Please sign in to comment.