Set global to prevent query logging when outputting datastreams.
Merge pull request #390 from adam-vessey/7.x-prevent-devel-query-log-issues

Set global to prevent query logging when outputting datastreams.