diff --git a/lib/node.js b/lib/node.js index c74ab94..98a66d3 100644 --- a/lib/node.js +++ b/lib/node.js @@ -45,7 +45,7 @@ Socket = Primus.createSocket({ if(process.env.NODE_ENV === 'production' && INSTANCE_NAME === "") { - INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output; + INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id 2>/dev/null', {silent: true}).output; } console.log('');