sed log output when running
Hi,
I would like to filter log output of my meteor application when running/debugging in webstorm to save some screen space. I made a bash script to run meteor and pipe the output through sed. It works from the bash console, but not in WebStorm. What am I doing wrong?
#!/bin/bash
/usr/local/bin/meteor $1 $2 $3 $4 $5 $6 $7 $8 | sed "s/I[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9][0-9]([0-9])? //" -e "s/[0-9][0-9]\.[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]:[0-9][0-9] //"
Please sign in to leave a comment.
what do you mean saying that it doesn't work from WebStorm? How do you run it there?
Sorry, that was terribly unspecific. I simply do not get any output there anymore, whereas on the console I can see the filtered output
how do you run it?
I replaced /usr/local/bin/meteor in "Meteor executable" by the path to my bash script
I guess your solution can work for running meteor app from WebStorm. Meteor debug connects to the nodejs process directly so you cannot filter output using simpile bash-script.