3

I was adding Profiling in my Google CLoud Nodejs App and i see here in the documentation docs/profiling-nodejs that suported loglevels are

  • 0: disables all agent logging (default)
  • 1: enables error logging
  • 2: enables warning logging
  • 3: enables debug logging

But here in the Sample App documentation cloud-profiler-nodejs suported loglevels are

  • Setting logLevel to 0 will disable logging
  • 1 sets log level to error
  • 2 sets it to warn
  • 3 sets it to info
  • 4 sets it to debug.

So can anyone please tell me which documentation is right and which one is wrong ?

jJ'
  • 3,038
  • 32
  • 25
Sudhanshu Gaur
  • 7,486
  • 9
  • 47
  • 94
  • You can actually check: set it first to 4. If it's not rejected and debug logs start to show up then the 2nd one is right (which is what I suspect). If so you can leave documentation feedback for the 1st one at the top of the page (3 stars or lower I *think* to be able to file an issue) to get it corrected. – Dan Cornilescu Apr 18 '18 at 15:50

2 Answers2

1

I posted the same question to Google group Forum and got the solution

The sample is based on the Alpha release of Stackdriver Profiler, while the product’s documentation is on the Beta release.

Sudhanshu Gaur
  • 7,486
  • 9
  • 47
  • 94
1

The discrepancy you noted is now corrected.

https://github.com/googleapis/cloud-profiler-nodejs#changing-log-level https://cloud.google.com/profiler/docs/profiling-nodejs#agent_logging

double-beep
  • 5,031
  • 17
  • 33
  • 41
Kalyana C
  • 23
  • 4