jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
1.02k stars 549 forks source link

log format with b'' #1047

Closed jaur-jaur closed 6 days ago

jaur-jaur commented 2 years ago

HI everyone, I am using jasmin 0.10.9v. I got logs from sms sent surrounded by b' ' for content, to and from items. I don't know what does it mean or even if it's an misconfiguration. Can someone could explain me and tell me if possible how to remove that?

2022-04-01 19:01:24 INFO 342472 SMS-MT [uid:xxxx] [cid:Net] [msgid:8a0a971a-7123-44b7-babe-bab1692fd497] [prio:1] [from:b'xxxx'] [to:b'XX'] [content:b'Test envoi SMS via SMPP du 2022-04-01 19:01:24'] 2022-04-01 19:01:41 INFO 342472 DELIVER_SM [uid:xxxx] [from:b'xxxx'] [to:b'XX'] [content:b"id:8a0a971a-7123-44b7-babe-bab1692fd497 submit date:2204011901 done date:2204011901 stat:DELIVRD err:b'000'"]

THanks in advance my dear

Carlos314159 commented 2 years ago

The content is displayed in bytes, you should ideally decode the content with content.decode().

jaur-jaur commented 2 years ago

Thank you for yr answer. Got it

meepos commented 2 years ago

I got similar issue with you. Also i'm newby for this. Please tell me how to resolve this issue. Thanks

github-actions[bot] commented 1 month ago

Stale issue detected, remove stale label or comment or this will be closed soon.

github-actions[bot] commented 6 days ago

This issue was closed because it has been stalled more than a year with no activity.