Apr-08-2022, 08:41 PM
I already asked this on stackoverflow, i will here as well.
I'm not sure how exactly to explain this question because my english is no so god. But i will try with the sample source code.
I am on some open-embedded system where system debug-log can be enabled or disabled. If is enabled all events from boot to reboot are written into debug log in /home/root/logs/ folder. So any code which i wrote in my python app is written to this debug log. How to avoid this?
Let me explain with some piece of code.
startStream is my code:
How to avoid that third party functions/methods from python or from other languages wrote my python stuff into system debug log?
I'm not sure how exactly to explain this question because my english is no so god. But i will try with the sample source code.
I am on some open-embedded system where system debug-log can be enabled or disabled. If is enabled all events from boot to reboot are written into debug log in /home/root/logs/ folder. So any code which i wrote in my python app is written to this debug log. How to avoid this?
Let me explain with some piece of code.
startStream is my code:
def startStream(myUrl): from SomeFolder.SomeApp.SomeFile import PlayStream PlayStream(myUrl)PlayStream isn't my code. it's somewhere on the system:
def PlayStream(url): print(url) session.PlayService(url)So as you can see, PlayStream function will write down my url into debug log, but i don't want this. I don't want to people see my links (in this case). Let me explain that SomeFolder.SomeApp.SomeFile import PlayStream is a imaginary import and function name and can be a lot of similar function anywhere across the system.
How to avoid that third party functions/methods from python or from other languages wrote my python stuff into system debug log?