Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c72a8f7

Browse files
adding error detail
1 parent 221ee02 commit c72a8f7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/__init__.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def processor(data):
156156
body = json.dumps(item['doc'], default=json_serializer)
157157
rv = meta + '\n' + body
158158
else:
159-
logging.error('unknown action type')
160-
raise TypeError('unknown action type')
159+
logging.error('unknown action type in doc')
160+
raise TypeError('unknown action type in doc')
161161
yield rv
162162

163163

@@ -228,6 +228,9 @@ def binlog_loader():
228228
'action': 'index',
229229
'doc': row['values']
230230
}
231+
else:
232+
logging.error('unknown action type in binlog')
233+
raise TypeError('unknown action type in binlog')
231234
yield rv
232235
# print(rv)
233236
stream.close()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /