Skip to content

logging functions (log.info, log.warning, etc) silently ignored entries #1290

@kunchenguid

Description

@kunchenguid

in Log.assignSeverityToEntries_, this line
var entriesClone = [].slice.call(entries);
will result in an empty array if "entries" is a single entry, while all the logging functions like Log.info, Log.warning etc depends on its ability to process single entry objects. only Log.write can successfully write single entry objects at this time.

Metadata

Metadata

Labels

api: loggingIssues related to the Cloud Logging API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions