Skip to content

Instantly share code, notes, and snippets.

@ludovicwyffels
Created September 7, 2019 15:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ludovicwyffels/93fcfffae2d53af76462b13fdd0f35df 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