better logging
This commit is contained in:
parent
3f2466b09c
commit
ccabc1fd19
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ const tryAndWait = async (promGen, shouldRetry = () => false) => {
|
|||
if (shouldRetry(resolvedValue)) {
|
||||
logger.info(
|
||||
'force retrying' +
|
||||
` args: ${promGen.toString()} -- ${shouldRetry.toString()}`
|
||||
` args: ${promGen.toString()} -- ${shouldRetry.toString()} \n resolvedValue: ${resolvedValue}, type: ${typeof resolvedValue}`
|
||||
)
|
||||
} else {
|
||||
return resolvedValue
|
||||
|
|
@ -129,7 +129,7 @@ const tryAndWait = async (promGen, shouldRetry = () => false) => {
|
|||
if (shouldRetry(resolvedValue)) {
|
||||
logger.info(
|
||||
'force retrying' +
|
||||
` args: ${promGen.toString()} -- ${shouldRetry.toString()}`
|
||||
` args: ${promGen.toString()} -- ${shouldRetry.toString()} \n resolvedValue: ${resolvedValue}, type: ${typeof resolvedValue}`
|
||||
)
|
||||
} else {
|
||||
return resolvedValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue