handle case bounce info too verbose in daily report
This commit is contained in:
parent
a6569d47dd
commit
32fffeaa6e
3
cron.py
3
cron.py
|
@ -399,7 +399,8 @@ def all_bounce_report() -> str:
|
||||||
.order_by(Bounce.created_at.desc())
|
.order_by(Bounce.created_at.desc())
|
||||||
.first()
|
.first()
|
||||||
)
|
)
|
||||||
res += f"Most recent cause: \n{most_recent.info or ''}"
|
# most_recent.info can be very verbose
|
||||||
|
res += f"Most recent cause: \n{most_recent.info[:200] if most_recent.info else 'N/A'}"
|
||||||
res += "\n----\n"
|
res += "\n----\n"
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Reference in a new issue