jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

log format with b''

Open jaur-jaur opened this issue 2 years ago • 4 comments

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

jaur-jaur avatar Apr 02 '22 21:04 jaur-jaur

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

Carlos314159 avatar May 03 '22 08:05 Carlos314159

Thank you for yr answer. Got it

jaur-jaur avatar May 04 '22 10:05 jaur-jaur

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

meepos avatar Jul 25 '22 03:07 meepos