Skip to content

Instantly share code, notes, and snippets.

@haldarmahesh
Last active September 2, 2019 06:24
Show Gist options
  • Save haldarmahesh/a31768ab554976c2f04166010432430e to your computer and use it in GitHub Desktop.
Save haldarmahesh/a31768ab554976c2f04166010432430e to your computer and use it in GitHub Desktop.
import logger from '../logSetup';
processLoan(...) {
logger.debug(">>>> Entering processLoan()");
// ... process
logger.debug(`Processing user loan with id ${userService.getUser().getId()}`);
// this might throw error, when getUser returns undefined
logger.debug("<<<< Exiting processLoan()");
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment