Copy variable params into local variables before logging