Closed
Description
When calling functions that upload logs to the server, like .write()
, a large amount of lines get written to standard out. Example:
...
stream: adjusting kept idle streams num_idle_streams=0, max=100
send: next frame: payloadlen=8, type=6, flags=0x00, stream_id=0
send: start transmitting frame type=6, length=17
stream: adjusting kept idle streams num_idle_streams=0, max=100
send: end transmission of a frame
send: reset nghttp2_active_outbound_item
...
deflatehd: deflating :scheme: https
deflatehd: name/value match index=6
deflatehd: emit indexed index=6, 1 bytes
deflatehd: deflating :path: /google.logging.v2.LoggingServiceV2/WriteLogEntries
deflatehd: name match index=3
deflatehd: emit indname index=3, valuelen=51, indexing_mode=1
deflatehd: emit string str=/google.logging.v2.LoggingServiceV2/WriteLogEntries, length=51, huffman=1, encoded_length=37
deflatehd: deflating :method: POST
deflatehd: name/value match index=2
deflatehd: emit indexed index=2, 1 bytes
...
inflatehd: decoded integer is 64
inflatehd: index=64
inflatehd: header emission: content-disposition: attachment
recv: proclen=1
inflatehd: start state=2
inflatehd: all input bytes were processed
inflatehd: in_final set
recv: proclen=0
...
I can't find a way to disable this noisy output. This is problematic because I need to control the standard out of my program.
Environment details
- OS: Centos 8
- Node.js version: v10.16.3
- npm version: 6.13.4
@google-cloud/logging
version: 6.0.0
Steps to reproduce
Run the example code that creates a log entry and writes it to Stackdriver