Fix null error bug with logging functions
Merge pull request #404 from Gama11/dev_log

Fix null error bug with logging functions