logging for the view engine

#1563
where does this exception happen?