( currentCtx: Context, binding: Binding<unknown>, logger: Logger = debug, )
| 22 | * @param logger - An optional log function |
| 23 | */ |
| 24 | export function logContexts( |
| 25 | currentCtx: Context, |
| 26 | binding: Binding<unknown>, |
| 27 | logger: Logger = debug, |
| 28 | ) { |
| 29 | const ownerCtx = currentCtx.getOwnerContext(binding.key); |
| 30 | logContext('Owner', ownerCtx, binding, logger); |
| 31 | logContext('Resolution', currentCtx, binding, logger); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Log the given context/binding |
no test coverage detected