Bug fix to "Cannot call non-static method getLog statically" error