Skip to content

Commit 77d1803

Browse files
chore: improve info message and add to docs
1 parent dd527f9 commit 77d1803

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

cli/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
928928
notificationReportGenerator := reports.NewReportGenerator(ctx, logger.Named("notifications.report_generator"), options.Database, options.NotificationsEnqueuer, quartz.NewReal())
929929
defer notificationReportGenerator.Close()
930930
} else {
931-
logger.Info(ctx, "notifications disabled as there are no notification methods configured")
931+
cliui.Info(inv.Stdout, "Notifications are currently disabled as there are no configured delivery methods. See https://coder.com/docs/admin/monitoring/notifications#delivery-methods for more details.")
932932
}
933933

934934
// Since errCh only has one buffered slot, all routines

docs/admin/monitoring/notifications/index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ flags.
7474
Notifications can currently be delivered by either SMTP or webhook. Each message
7575
can only be delivered to one method, and this method is configured globally with
7676
[`CODER_NOTIFICATIONS_METHOD`](../../../reference/cli/server.md#--notifications-method)
77-
(default: `smtp`).
77+
(default: `smtp`). When there are no delivery methods configured, notifications
78+
will be disabled.
7879

7980
Premium customers can configure which method to use for each of the supported
8081
[Events](#workspace-events); see the
@@ -89,11 +90,11 @@ existing one.
8990

9091
**Server Settings:**
9192

92-
| Required | CLI | Env | Type | Description | Default |
93-
| :------: | ------------------- | ----------------------- | ----------- | ----------------------------------------- | ------------- |
94-
| ✔️ | `--email-from` | `CODER_EMAIL_FROM` | `string` | The sender's address to use. | |
95-
| ✔️ | `--email-smarthost` | `CODER_EMAIL_SMARTHOST` | `host:port` | The SMTP relay to send messages through. | localhost:587 |
96-
| ✔️ | `--email-hello` | `CODER_EMAIL_HELLO` | `string` | The hostname identifying the SMTP server. | localhost |
93+
| Required | CLI | Env | Type | Description | Default |
94+
| :------: | ------------------- | ----------------------- | -------- | ----------------------------------------- | --------- |
95+
| ✔️ | `--email-from` | `CODER_EMAIL_FROM` | `string` | The sender's address to use. | |
96+
| ✔️ | `--email-smarthost` | `CODER_EMAIL_SMARTHOST` | `string` | The SMTP relay to send messages |
97+
| ✔️ | `--email-hello` | `CODER_EMAIL_HELLO` | `string` | The hostname identifying the SMTP server. | localhost |
9798

9899
**Authentication Settings:**
99100

0 commit comments

Comments
 (0)