sometimes params can be super long (document uploads). only print first 511 characters of params