Turn #ifdef LOG into a command-line option for debugging use