Concatination of python error messages. #11954
synapticonashaikh
started this conversation in
General
Replies: 2 comments 1 reply
-
You can log exceptions to a file in upython eg
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I can see there is a mention of an indentation error in your code. Please check in which line it occurred and correct. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm working on a project where I'm redirecting all the prints and error logs into a log file. And to do so, I modified the function
mp_hal_stdout_tx_strn
. And in my log file, I store each message on a new line (for better understanding and visibility). The code worked fine with theprint
function, but I noticed some unusual behaviour when I tried to do the same thing with error messages. I debugged a little and saw that when an error occurs, the executor calls this functionmp_hal_stdout_tx_strn
several times (8 to 9 times
). This results in broken logs in my log file. So, could anyone please tell me if there is a way or method to collectively concatenate the error messages? And then, I can push it into the log file.Beta Was this translation helpful? Give feedback.
All reactions