Remove a debug line
Add a 'log' function to core