fix: misleading "Starting.." logs on scache reload
This commit is contained in:
committed by
Wolfgang Walther
parent
a0d3ebf590
commit
1b0f29a8cc
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- #3149, Misleading "Starting PostgREST.." logs on schema cache reloading - @steve-chavez
|
||||||
|
|
||||||
## [12.0.2] - 2023-12-20
|
## [12.0.2] - 2023-12-20
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -68,6 +68,8 @@ type Handler = ExceptT Error
|
|||||||
|
|
||||||
run :: AppState -> IO ()
|
run :: AppState -> IO ()
|
||||||
run appState = do
|
run appState = do
|
||||||
|
AppState.logWithZTime appState $ "Starting PostgREST " <> T.decodeUtf8 prettyVersion <> "..."
|
||||||
|
|
||||||
conf@AppConfig{..} <- AppState.getConfig appState
|
conf@AppConfig{..} <- AppState.getConfig appState
|
||||||
AppState.connectionWorker appState -- Loads the initial SchemaCache
|
AppState.connectionWorker appState -- Loads the initial SchemaCache
|
||||||
Unix.installSignalHandlers (AppState.getMainThreadId appState) (AppState.connectionWorker appState) (AppState.reReadConfig False appState)
|
Unix.installSignalHandlers (AppState.getMainThreadId appState) (AppState.connectionWorker appState) (AppState.reReadConfig False appState)
|
||||||
|
|||||||
@@ -353,7 +353,6 @@ internalConnectionWorker appState = work
|
|||||||
where
|
where
|
||||||
work = do
|
work = do
|
||||||
config@AppConfig{..} <- getConfig appState
|
config@AppConfig{..} <- getConfig appState
|
||||||
logWithZTime appState $ "Starting PostgREST " <> T.decodeUtf8 prettyVersion <> "..."
|
|
||||||
logWithZTime appState "Attempting to connect to the database..."
|
logWithZTime appState "Attempting to connect to the database..."
|
||||||
connected <- establishConnection appState config
|
connected <- establishConnection appState config
|
||||||
case connected of
|
case connected of
|
||||||
|
|||||||
Reference in New Issue
Block a user