-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server logging 931 #54
Conversation
caikit_tgis_backend/tgis_backend.py
Outdated
@@ -101,6 +101,10 @@ def __init__(self, config: Optional[dict] = None): | |||
# Parse connection objects for all model-specific connections | |||
for model_id, model_conn_cfg in self._remote_models_cfg.items(): | |||
model_conn = TGISConnection.from_config(model_id, model_conn_cfg) | |||
|
|||
log.debug( | |||
"model connection config is set to the following: %s", model_conn_cfg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this corresponds to a model would it be helpful to also log the model_id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, @evaline-ju - made the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what @evaline-ju was referring to was to include model_id
in the same log message so its easier to track. So something like:
connection config for model %s : %s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that was what I had intended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misunderstood - fixing this @evaline-ju @gkumbhat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the DCO check is stuck but could you rebase your commits with the signoff? thanks!
Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
2f3e776
to
8d90233
Compare
missed this since update is sent to another email address! Thanks @evaline-ju - forgot the signoff needed in the caikit repos. |
Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
This PR adds logging to the model connection configuration in order to debug possible issues in the log.