logging before first statement executes (important in case of error)
show error-causing statement
depricated-warnings removed