Skip to content
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

Merged
merged 5 commits into from
Jun 6, 2024
Merged

Server logging 931 #54

merged 5 commits into from
Jun 6, 2024

Conversation

swith004
Copy link

@swith004 swith004 commented Jun 4, 2024

This PR adds logging to the model connection configuration in order to debug possible issues in the log.

@@ -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
Copy link
Collaborator

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?

Copy link
Author

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

Copy link
Contributor

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

Copy link
Collaborator

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

Copy link
Author

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

@swith004 swith004 requested a review from evaline-ju June 5, 2024 13:45
Copy link
Collaborator

@evaline-ju evaline-ju left a 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!

Shonda-Adena-Witherspoon added 4 commits June 5, 2024 14:09
Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
t
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>
@swith004 swith004 force-pushed the server-logging-931 branch from 2f3e776 to 8d90233 Compare June 5, 2024 19:16
@swith004 swith004 requested a review from evaline-ju June 5, 2024 19:17
@swith004
Copy link
Author

swith004 commented Jun 5, 2024

I see the DCO check is stuck but could you rebase your commits with the signoff? thanks!

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>
Copy link
Contributor

@gkumbhat gkumbhat left a 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!

@gkumbhat gkumbhat merged commit 1214b0b into caikit:main Jun 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants