serveHTTP: make logging optional