mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-18 18:18:23 -05:00
Suppress SiteURL log error when in CI or local_testing mode (#34982)
This commit is contained in:
parent
fde4393144
commit
dcda5304ff
1 changed files with 4 additions and 1 deletions
|
|
@ -384,7 +384,10 @@ func NewServer(options ...Option) (*Server, error) {
|
|||
}
|
||||
|
||||
if _, err = url.ParseRequestURI(*s.platform.Config().ServiceSettings.SiteURL); err != nil {
|
||||
mlog.Error("SiteURL must be set. Some features will operate incorrectly if the SiteURL is not set. See documentation for details: https://mattermost.com/pl/configure-site-url")
|
||||
// Don't spam the logs when in CI or local testing mode
|
||||
if !(os.Getenv("IS_CI") == "true" || os.Getenv("IS_LOCAL_TESTING") == "true") {
|
||||
mlog.Error("SiteURL must be set. Some features will operate incorrectly if the SiteURL is not set. See documentation for details: https://mattermost.com/pl/configure-site-url")
|
||||
}
|
||||
}
|
||||
|
||||
// Start email batching because it's not like the other jobs
|
||||
|
|
|
|||
Loading…
Reference in a new issue