Cleanup (remove) code in getlog.
Merge pull request #4167 from AndresTanasijczuk/cleanup

Cleanup (remove) code in getlog.