refactored code to ensure logging comes in proper order
Merge pull request #16 from KrakeIO/next_page_post

refactored code to ensure logging comes in proper order