Use elgg log for logging debug info
Remove redundant breaks