Skip to Content
Google Cloud Platform for Developers
book

Google Cloud Platform for Developers

by Ted Hunter, Steven Porter
July 2018
Intermediate to advanced
506 pages
16h 2m
English
Packt Publishing
Content preview from Google Cloud Platform for Developers

Logpoints

So far we've identified one word that causes the preceding error to be thrown, but looking at the code, the SHA-256 hash only has to match the first seven characters in order for the error to be thrown. Rather than watching for new snapshots, we can inject a new log statement directly into the running service using Debug Logpoints.

Before continuing, turn off the previous breakpoint by clicking the x within the breakpoint icon. To create a new logpoint, click the Logpoint tab in the Stackdriver Debugger web interface. With the Logpoint tab open, click on the same line we used for the breakpoint. Set the log level to Error and set the message to word = {word}. Curly braces here indicate that the related variable should be interpolated. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Cloud Platform in Action

Google Cloud Platform in Action

John J. (JJ) Geewax
Google Cloud Platform for Architects

Google Cloud Platform for Architects

Vitthal Srinivasan, Loonycorn Ravi, Judy Raj

Publisher Resources

ISBN: 9781788837675Supplemental Content