Added check for debug mode. Otherwise logger is disabled.
Fixed pooling.
Merge pull request #7 from ziflex/development

Development