Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release History

## 0.9.36 (2025-11-13)

**Breaking Changes**

Fix: Adapt to [LogItem](aliyun/log/logitem.py) breaking change from v0.8.10

Updates code to reflect the new LogItem signature, where the
`nano_time_part` argument moved from the 3rd to the 4th position.

## 0.9.35 (2025-11-05)

**Feature**
Expand Down
5 changes: 4 additions & 1 deletion aliyun/log/logitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ class LogItem(object):

:type contents: tuple(key-value) list
:param contents: the data of the log item, including many (key,value) pairs.

:type time_nano_part: int
:param time_nano_part: time nano part of the log item, ranges from 0 to 999999999.
"""

def __init__(self, timestamp=None, time_nano_part=None, contents=None):
def __init__(self, timestamp=None, contents=None, time_nano_part=None):
nano_time = int(time.time() * 10**9)
self.timestamp = int(timestamp) if timestamp else int(nano_time / 1000000000)
# milliseconds
Expand Down
2 changes: 1 addition & 1 deletion aliyun/log/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.9.35'
__version__ = '0.9.36'

import sys
OS_VERSION = str(sys.platform)
Expand Down
Loading