Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. kr.prashant94
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Groups 0

    kr.prashant94

    @kr.prashant94

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Bangalore

    kr.prashant94 Unfollow Follow

    Latest posts made by kr.prashant94

    • RE: How to stop file logging using logzero

      @ayushagarwal 🙏

      posted in Python SDK
      K
      kr.prashant94
    • How to stop file logging using logzero

      Whenever, I am importing SmartApi it is creating ./logs folder in project directory that highly unsafe for my application. the logger might log sensitive critical information that will expose over public access.
      I want to stop logzero logging but unable to do that.

      from SmartApi import SmartConnect
      import logzero
      
      logzero.logfile(None)
      

      Please remove the logzero configuration override package. Please inherit configuration from parent configuration.

      SmartApi/smartConnect.py

      128        log_folder_path = os.path.join("logs", log_folder)  # Construct the full path to the log folder
      129        os.makedirs(log_folder_path, exist_ok=True) # Create the log folder if it doesn't exist
      130        log_path = os.path.join(log_folder_path, "app.log") # Construct the full path to the log file
      131        logzero.logfile(log_path, loglevel=logging.ERROR)  # Output logs to a date-wise log file
      

      Please fix this kind of programming bug 🙏

      logzero documentation

      posted in Python SDK
      K
      kr.prashant94