silent curl output
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 21 Sep 2018 08:57:07 +0000 (10:57 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 21 Sep 2018 08:57:07 +0000 (10:57 +0200)
gnt-monitor

index db88f06..3f1dacc 100755 (executable)
@@ -184,7 +184,7 @@ foreach my $instance ( keys %$stat ) {
 
 close($fh);
 
-if ( system( 'curl', '-XPOST', $INFLUX, '--data-binary', '@/dev/shm/gnt-monitor.influx' ) == 0 ) {
+if ( system( 'curl', '-s', '-XPOST', $INFLUX, '--data-binary', '@/dev/shm/gnt-monitor.influx' ) == 0 ) {
 } else {
        rename '/dev/shm/gnt-monitor.influx', '/dev/shm/gnt-monitor.influx.bug.' . scalar glob '/dev/shm/gnt-monitor.influx.bug.*';
        warn "curl failed: $? $!";