Kisinga
Kisinga

Reputation: 1729

cloud functions truncating logs

I currently rely on getting some information from cloud functions through console.log(information) However, whenever the logs are long they are truncated when viewing on the browser. Scrolling bring up the next set of logs, hence the logs are incomplete (see attached image) I'm aware that I can store his data in the database, but sometimes it's convenient viewing the logs as well Anyone with a better way of going round this? enter image description here

Upvotes: 3

Views: 953

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317497

There is no easy workaround for this. You would have to build a string of whatever you want to log, split it into segments that fit on screen, then log those substrings separately. Or, you could write the log somewhere else temporarily, such a database.

This is a known issue, but please feel free to file a bug report to add your voice.

Upvotes: 2

Related Questions