Skip to content

Commit

Permalink
fix logger configuration (#538)
Browse files Browse the repository at this point in the history
both in client and command-line
  • Loading branch information
drortirosh authored Dec 3, 2020
1 parent 0ff723d commit 2177e29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export function gsnCommander (options: GsnOption[]): CommanderStatic {
commander.option('-g, --gasPrice <number>', 'gas price to give to the transaction, in gwei.', '1')
break
}
commander.option('-l, --loglevel <string>', 'error | warn | info | debug', 'debug')
})
commander.option('-l, --loglevel <string>', 'error | warn | info | debug', 'debug')
return commander
}
2 changes: 1 addition & 1 deletion src/relayclient/GSNConfigurator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function resolveConfigurationGSN (provider: Web3Provider, partialCo
throw new Error('Cannot resolve GSN deployment without paymaster address')
}

const tmpConfig = Object.assign({}, partialConfig, defaultGsnConfig)
const tmpConfig = Object.assign({}, defaultGsnConfig, partialConfig)
const logger = createClientLogger(tmpConfig.logLevel, tmpConfig.loggerUrl, tmpConfig.loggerApplicationId, tmpConfig.loggerUserIdOverride)
const contractInteractor = new ContractInteractor(provider, logger, defaultGsnConfig)
const paymasterInstance = await contractInteractor._createPaymaster(partialConfig.paymasterAddress)
Expand Down

0 comments on commit 2177e29

Please # to comment.