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] //"

5 comments
Comment actions Permalink

what do you mean saying that it doesn't work from WebStorm? How do you run it there?


0
Comment actions Permalink

Sorry, that was terribly unspecific. I simply do not get any output there anymore, whereas on the console I can see the filtered output

0
Comment actions Permalink

how do you run it?


0
Comment actions Permalink

I replaced /usr/local/bin/meteor in "Meteor executable" by the path to my bash script

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.