Skip to content

datalog: The "header" timestamp should be enable even without calling log.set_labels() #91

@microbit-carlos

Description

@microbit-carlos

The log.set_labels() feature has a default value for the timestamp argument, currently log.MILLISECONDS.

When the set_labels() function is called this default unit for the timestamp is correctly applied. However, we also want to make sure that the timestamp is set with the default value even if set_labels() isn't called.

So this small programme should log the temperature with a timestamp, which it currently doesn't do:

import log

log.add(temp=temperature())

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions