[PR #2294] [MERGED] update slog handler options #10846

Closed
opened 2026-04-12 23:12:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2294
Author: @mxyng
Created: 1/31/2024
Status: Merged
Merged: 1/31/2024
Merged by: @mxyng

Base: mainHead: mxyng/slog-source


📝 Commits (1)

  • 8ac08a0 update slog handler options

📊 Changes

1 file changed (+18 additions, -5 deletions)

View changed files

📝 server/routes.go (+18 -5)

📄 Description

  • consistent format by using text handler for debug and non-debug
  • truncate source file to just the file name

sample outputs:

time=2024-01-31T15:01:02.632-08:00 level=INFO source=routes.go:983 msg="Listening on 127.0.0.1:11434 (version 0.0.0)"
time=2024-01-31T15:01:02.632-08:00 level=INFO source=payload_common.go:106 msg="Extracting dynamic libraries..."
time=2024-01-31T15:01:02.653-08:00 level=INFO source=payload_common.go:145 msg="Dynamic LLM libraries [metal]"

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/2294 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 1/31/2024 **Status:** ✅ Merged **Merged:** 1/31/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/slog-source` --- ### 📝 Commits (1) - [`8ac08a0`](https://github.com/ollama/ollama/commit/8ac08a0eec1e59a10dd1dab4513d4640013cdb3b) update slog handler options ### 📊 Changes **1 file changed** (+18 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+18 -5) </details> ### 📄 Description - consistent format by using text handler for debug and non-debug - truncate source file to just the file name sample outputs: ``` time=2024-01-31T15:01:02.632-08:00 level=INFO source=routes.go:983 msg="Listening on 127.0.0.1:11434 (version 0.0.0)" time=2024-01-31T15:01:02.632-08:00 level=INFO source=payload_common.go:106 msg="Extracting dynamic libraries..." time=2024-01-31T15:01:02.653-08:00 level=INFO source=payload_common.go:145 msg="Dynamic LLM libraries [metal]" ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:12:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10846