Replace comments with logging to build output