logzero not working with smartapi-python==1.4.8 and latest smartapi-python sdk
-
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#L131Please 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. -
Hi @6857 FYI
-
@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 -
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. -
Hello @coolankurmahe
We will check this on Mac and will get back to you shortly
Regards,
SmartAPI Team -
@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 ? -
Hello @coolankurmahe
We have raised this issue to our tech team will get back to you shortly on this.Regards,
SmartAPI Team -
@coolankurmahe I also facing this problem.