In what function are you doing that code? the prints are written in the viewport, not on the output log.