Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Noisy output when uploading logs to Stackdriver #668

Description

@sffc

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/nodejs-logging API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions