Skip to content

Commit 9b40966

Browse files
authored
Merge pull request #38 from tisnik/better-logging
Better logging
2 parents e9e43b3 + 2059692 commit 9b40966

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

src/app/endpoints/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def retrieve_response(client: LlamaStackClient, model_id: str, prompt: str) -> s
5151

5252
available_shields = [shield.identifier for shield in client.shields.list()]
5353
if not available_shields:
54-
print(colored("No available shields. Disabling safety.", "yellow"))
54+
logger.info("No available shields. Disabling safety")
5555
else:
56-
print(f"Available shields found: {available_shields}")
56+
logger.info(f"Available shields found: {available_shields}")
5757

5858
agent = Agent(
5959
client,

0 commit comments

Comments
 (0)