diff options
| author | adamdottv <[email protected]> | 2025-05-12 12:53:20 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-12 12:53:20 -0500 |
| commit | 7f9c992993b56c0c3f2895632d81b64f209a4d94 (patch) | |
| tree | a0f046472a597fbf2ada957b43670efd01289ec2 /internal | |
| parent | b6524c0982b5e2041e077b9f8011547c1646b4d0 (diff) | |
| download | opencode-7f9c992993b56c0c3f2895632d81b64f209a4d94.tar.gz opencode-7f9c992993b56c0c3f2895632d81b64f209a4d94.zip | |
fix: log status messages
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/status/status.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/status/status.go b/internal/status/status.go index 9c63c8957..c95951de7 100644 --- a/internal/status/status.go +++ b/internal/status/status.go @@ -3,6 +3,7 @@ package status import ( "context" "fmt" + "log/slog" "sync" "time" @@ -64,18 +65,22 @@ func GetService() Service { func (s *service) Info(message string) { s.publish(LevelInfo, message) + slog.Info(message) } func (s *service) Warn(message string) { s.publish(LevelWarn, message) + slog.Warn(message) } func (s *service) Error(message string) { s.publish(LevelError, message) + slog.Error(message) } func (s *service) Debug(message string) { s.publish(LevelDebug, message) + slog.Debug(message) } func (s *service) publish(level Level, messageText string) { |
