Closed DhruvRaiPuri closed 5 years ago
Agreed. Can you please code this and make a pull request?
Sure, will work on it and submit a pull request.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like so [x]).Before submitting an issue, make sure you have:
Purpose of your issue?
The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.
For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.
Paste the output of
python -V
here: Python 3.7.1 (refer - https://cloud.google.com/functions/docs/concepts/python-runtime) Code:Error/Debug Log:
Describe your issue
I am running instabot in Python Google Cloud Function environment. The default folder in which the code runs (/user_code) is read-only.
The code in api.py which instantiates FileHandler for logger is harcoded in the package to 'instabot.log' due to which a read-only error is thrown by Cloud Function runtime as it attempts to write to '/user_code/instabot.log' which it can't.
There should be a way to override the log file location to a different folder (in this case '/user_code/tmp' where 'tmp' is the only folder with write permission in a Google Cloud Function).