Skip to content

Commit

Permalink
sometimes the loggroup size exceeds the 5MB but can still be successf…
Browse files Browse the repository at this point in the history
…ul. remove this check now.
  • Loading branch information
wjo1212 committed Sep 11, 2018
1 parent 78bab83 commit 590b87f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions aliyun/log/logclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,6 @@ def put_log_raw(self, project, logstore, log_group, compress=None):
raw_body_size = len(body)
headers = {'x-log-bodyrawsize': str(raw_body_size), 'Content-Type': 'application/x-protobuf'}

if raw_body_size > 5 * 1024 * 1024: # 10 MB
raise LogException('InvalidLogSize',
"logItems' size exceeds maximum limitation: 5 MB. now: {0} MB.".format(
raw_body_size / 1024.0 / 1024))

if compress is None or compress:
headers['x-log-compresstype'] = 'deflate'
body = zlib.compress(body)
Expand Down

0 comments on commit 590b87f

Please sign in to comment.