Sometime I want to get log before the error exceptions, how can I do that? > Note the `ctx.waitUntil(logger.flush());` before the return statement of the function.