Now passing through pos object so the line numbers of the code calling l...

...ogger.debug are used