Bugfix: missing function in -O optimised mode.
Merge pull request #39 from boudewijn-tribler/logging

Bugfix: missing function in -O optimised mode.