Skip to content

Commit 7f856b8

Browse files
Update src/labthings_fastapi/server/__init__.py
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
1 parent d6f6130 commit 7f856b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/labthings_fastapi/server/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ def from_config(cls, config: ThingServerConfig, debug: bool = False) -> Self:
127127
DEBUG.
128128
:return: A `.ThingServer` configured as per the model.
129129
"""
130-
if debug:
131-
configure_thing_logger(logging.DEBUG)
132-
return cls(**dict(config))
130+
return cls(**dict(config), debug=debug)
133131

134132
def _set_cors_middleware(self) -> None:
135133
"""Configure the server to allow requests from other origins.

0 commit comments

Comments
 (0)