nodejs-logging icon indicating copy to clipboard operation
nodejs-logging copied to clipboard

maxResults in getEntries looks broken

Open Raffaello opened this issue 3 years ago • 0 comments

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

  1. Is this a client library issue or a product issue? This is the client library for . We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers. Client Library issue
  2. Did someone already solve this?
  • Search the issues already opened: https://github.com/googleapis/nodejs-logging/issues
  • Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-node
  • Search or ask on StackOverflow (engineers monitor these tags): http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js Nope
  1. Do you have a support contract? Please create an issue in the support console to ensure a timely response.

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • OS: linux
  • Node.js version: 16.13.2
  • npm version: 8.1.2
  • @google-cloud/logging version: ^9.9.0"

Steps to reproduce

const loggingClient = new Logging();
const [entries] = await loggingClient.getEntries({
      autoPaginate: false,
      //filter: filters.join('\n'),
      maxResults: 5,
  })
  
 expect(entries.length).toBe(5)
  1. output:
    Expected: 5
  Received: 50

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Raffaello avatar May 18 '22 11:05 Raffaello