It would be helpful if you could provide some more information about the discrepancy that you are seeing in logs between the app insights and log stream. It is recommended to use the logging library in python for logging purposes.
Are you facing this discrepancy with the File system log stream or the App insights log stream? Please let me know