You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python model microservice accepts a debug-flag, but it does not use it for anything. It seems reasonable for it to use it for at least two things:
Pass it along to the flask server, so it can be in debug/non-debug mode, and
Provide different level of logging. For the latter I recommend using the logging module in Python instead of "print" statements scattered around in the code:
On the top of the class get the logger with logger = logging.getLogger(__name__)
Around in the code log to different levels, using e.g. logger.debug or logger.info
Set the loglevel of the logger based on the debug toggle.
The text was updated successfully, but these errors were encountered:
These changes make sense. We are updating the python code to create a Seldon module for easier testing (#306) and usage and we can add these changes into that. @jklaise
A hot-reload option might also be useful for accelerating k8s iterative development if using dev tools like skaffold filesync (https://skaffold.dev/docs/how-tos/filesync/).
The python model microservice accepts a debug-flag, but it does not use it for anything. It seems reasonable for it to use it for at least two things:
logger = logging.getLogger(__name__)
logger.debug
orlogger.info
The text was updated successfully, but these errors were encountered: