[debug] Fix log functions being inverted