In the course of developing your app, you may find that you want slightly different behavior while you're developing it than when it's ready for people to use. (Even if it will only ever be a private app, your "audience" is the agents on your account.) For example, you may want to increase the logging level or code against your own integration server instead of a production one. Here are some techniques you can use:
First, we define an inDevelopment variable in our closure.