Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    logzero not working with smartapi-python==1.4.8 and latest smartapi-python sdk

    Python SDK
    0
    8
    45
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      coolankurmahe last edited by coolankurmahe

      I downloaded the latest smartapi-python code on github and updated smartapi-python==1.4.8 by pip3 install smartapi-python==1.4.8 and can see the same in pip3 list.
      But I can see consistently that logzero logger isn't logging anymore.
      If I revert to earlier versions like 1.4.5 and smartapi-python code of that time, it works.

      I figured it out that a bug was introduced by your team at commit

      The loglevel should be logging.INFO rather than logging.ERROR at
      https://github.com/angel-one/smartapi-python/blob/main/SmartApi/smartConnect.py#L131

      Please correct the same.
      But this works on Linux but not on Mac. Can you replicate and figure out why ?
      Earlier smart api python sdk and installed version 1.4.5 used to work on Mac as well.

      A 1 Reply Last reply Reply Quote 0
      • A
        astrokabir @coolankurmahe last edited by

        @coolankurmahe I also facing this problem.

        1 Reply Last reply Reply Quote 0
        • M
          Moderator_3 last edited by

          Hello @coolankurmahe
          We have raised this issue to our tech team will get back to you shortly on this.

          Regards,
          SmartAPI Team

          6 1 Reply Last reply Reply Quote 0
          • C
            coolankurmahe last edited by

            @Moderator_3 @astrokabir : I figured out the bug at https://github.com/angel-one/smartapi-python/blob/main/SmartApi/smartConnect.py#L131. This bug was introduced in this commit
            The loglevel should be logging.INFO rather than logging.ERROR.
            It works fine on Linux after making just above correction.
            But it still doesn't work on Mac.
            @Moderator_3 : Can you get it replicated on Mac and see if it works ?

            M 2 Replies Last reply Reply Quote 0
            • M
              Moderator_3 @coolankurmahe last edited by

              Hello @coolankurmahe
              We will check this on Mac and will get back to you shortly
              Regards,
              SmartAPI Team

              1 Reply Last reply Reply Quote 0
              • M
                Moderator_3 @coolankurmahe last edited by

                Hi @coolankurmahe @astrokabir From the SmartAPI end, we have been using Logzero in our Python SDK to log errors. To track errors, we have a separate log file that creates a log folder, with files created inside the folder.

                Regards,
                SmartAPI Team.

                M 1 Reply Last reply Reply Quote 0
                • 6
                  6857 @Moderator_3 last edited by

                  @Moderator_3 said in logzero not working with smartapi-python==1.4.8 and latest smartapi-python sdk:

                  Hello @coolankurmahe
                  We have raised this issue to our tech team will get back to you shortly on this.

                  Regards,
                  SmartAPI Team
                  One classroom set up for proper lession

                  1 Reply Last reply Reply Quote 0
                  • M
                    Moderator_3 @Moderator_3 last edited by

                    Hi @6857 FYI

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post