GoogleCloudPlatform / functions-framework-dart

FaaS (Function as a service) framework for writing portable Dart functions
https://pub.dev/packages/functions_framework
Apache License 2.0
536 stars 54 forks source link

gcp: logging does not support jsonPayload #394

Closed felangel closed 1 year ago

felangel commented 1 year ago

Currently, log messages do not get interpreted as jsonPayload even if a JSON object is provided:

log({'hello': 'world'});

results in:

textPayload: "{hello: world}"

I would expect the following instead:

jsonPayload: {
  message: {
    hello: world
  }
}
kevmoo commented 1 year ago

Will look at your PR....