Move request logging earlier.