Python Forum
Avoid third party functions to wrote my python code into system debug-log?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Avoid third party functions to wrote my python code into system debug-log?
#1
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:
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?
Reply


Messages In This Thread
Avoid third party functions to wrote my python code into system debug-log? - by mark - Apr-08-2022, 08:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Running 3rd party libs on Steam Deck (Arch Linux) with restricted access metulburr 0 1,918 Jan-07-2023, 10:41 PM
Last Post: metulburr
  pycharm debug help mg24 1 1,078 Nov-18-2022, 05:38 AM
Last Post: deanhystad
  Python debug suddenly got bad ben1122 3 1,142 Sep-03-2022, 06:20 AM
Last Post: ben1122
  Need Help With Python RPG Battle System SBanya 1 6,539 Nov-01-2021, 10:38 PM
Last Post: Garudyne
  How to use a function from third party library? rrowhe4d 2 1,895 Aug-31-2021, 04:30 PM
Last Post: Larz60+
Bug Help Debug please jamesaarr 12 3,966 Jul-28-2021, 11:20 PM
Last Post: Pedroski55
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,761 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  Did interpreter 'compile' all import modules(from thrid-party) jamesyuan 10 4,452 Oct-19-2020, 10:49 AM
Last Post: jamesyuan
  system of inequalities in python fiel 1 2,021 Sep-12-2020, 06:07 AM
Last Post: DPaul
  Error in Int object is not subscript-able. How to debug this ? yanDvator 1 2,255 Aug-03-2020, 02:28 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020