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: