mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: rename chat logger from coderd.chats.chat-processor to coderd.chatd.processor (#23246)
- Rename logger `coderd.chats` to `coderd.chatd` in `coderd.go` - Rename sub-logger `chat-processor` to `processor` in `chatd/chatd.go`
This commit is contained in:
@@ -1308,7 +1308,7 @@ func New(cfg Config) *Server {
|
||||
closed: make(chan struct{}),
|
||||
db: cfg.Database,
|
||||
workerID: workerID,
|
||||
logger: cfg.Logger.Named("chat-processor"),
|
||||
logger: cfg.Logger.Named("processor"),
|
||||
subscribeFn: cfg.SubscribeFn,
|
||||
agentConnFn: cfg.AgentConn,
|
||||
createWorkspaceFn: cfg.CreateWorkspace,
|
||||
|
||||
+1
-1
@@ -776,7 +776,7 @@ func New(options *Options) *API {
|
||||
}
|
||||
|
||||
api.chatDaemon = chatd.New(chatd.Config{
|
||||
Logger: options.Logger.Named("chats"),
|
||||
Logger: options.Logger.Named("chatd"),
|
||||
Database: options.Database,
|
||||
ReplicaID: api.ID,
|
||||
SubscribeFn: options.ChatSubscribeFn,
|
||||
|
||||
Reference in New Issue
Block a user