You should not move this log into the function, since "uninstall" will show this message too. You'd better leave it outside the function, and the return value should be "bool".