[英]How to stop jsonPayload in stackdriver from being transformed to struct format?
I'm logging a simple json structure in google cloud function :我正在谷歌云函数中记录一个简单的 json 结构:
console.info(JSON.stringify({message: 'xxx', data: {status: 200}, status: 200}));
but I'm seeing an unreadable structure in stack driver below, how to stop stackdriver from transforming the log?但是我在下面的堆栈驱动程序中看到一个不可读的结构,如何阻止堆栈驱动程序转换日志?
There is currently an issue tracker reporting a similar issue were JSON strings are wrongly being ingested into the jsonPayload.目前有一个问题跟踪器报告了一个类似的问题,即 JSON 字符串被错误地摄取到 jsonPayload 中。
You can track the resolution of this issue in the mentioned link您可以在提到的链接中跟踪此问题的解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.