webapp config sets debug only if debug == 2 (#23)