JC: put session before params in log controller for :which_table