improved logging for subs
Merge pull request #222 from sarakha63/development

improved logging for subs