add function name and line number in error log