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)) {
|
if (shouldRetry(resolvedValue)) {
|
||||||
logger.info(
|
logger.info(
|
||||||
'force retrying' +
|
'force retrying' +
|
||||||
` args: ${promGen.toString()} -- ${shouldRetry.toString()}`
|
` args: ${promGen.toString()} -- ${shouldRetry.toString()} \n resolvedValue: ${resolvedValue}, type: ${typeof resolvedValue}`
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
return resolvedValue
|
return resolvedValue
|
||||||
|
|
@ -129,7 +129,7 @@ const tryAndWait = async (promGen, shouldRetry = () => false) => {
|
||||||
if (shouldRetry(resolvedValue)) {
|
if (shouldRetry(resolvedValue)) {
|
||||||
logger.info(
|
logger.info(
|
||||||
'force retrying' +
|
'force retrying' +
|
||||||
` args: ${promGen.toString()} -- ${shouldRetry.toString()}`
|
` args: ${promGen.toString()} -- ${shouldRetry.toString()} \n resolvedValue: ${resolvedValue}, type: ${typeof resolvedValue}`
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
return resolvedValue
|
return resolvedValue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue