Fixed usage of setlog.