Fixed release mode bugs in Log class