Fixed caller info

make contextmanager with the same functionality in contextlog and use it here