added Thrift::debug= and Thrift::debug functions, and possibility to change debug levels during runtime