chore(logger): allow skipping query string output (#4547)