How to log telegraf exec input plugins?


I have a script which telegraf.exec will run and the output will go in the influx fine. However, I would like to print if there is an error in the script. Right now, if I print something it will append it to the line protocol buffer which will cause the whole script to break. How can I print my logs without appending it to line protocol?

Try to print to stderr.