summaryrefslogtreecommitdiff
path: root/Biz/Storybook.py
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-12 21:20:07 -0500
committerBen Sima <ben@bsima.me>2025-11-13 11:20:14 -0500
commitc018d2dd1d7e7f1cc19b25f6ec74b3dec44ae9b9 (patch)
treea8c0748068f00449bd175aa953eb1acd7027fa65 /Biz/Storybook.py
parent2ad3efe73fbd5df58ae77ec411121575547f0e11 (diff)
Cleanup some logging setup code
I think the calls to Log.setup() were accidentally creating multiple loggers, hopefully this fixes the problem.
Diffstat (limited to 'Biz/Storybook.py')
-rwxr-xr-xBiz/Storybook.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Biz/Storybook.py b/Biz/Storybook.py
index 57b84c6..164e845 100755
--- a/Biz/Storybook.py
+++ b/Biz/Storybook.py
@@ -56,7 +56,8 @@ PORT = int(os.environ.get("PORT", "3000"))
area = App.from_env()
app = ludic.web.LudicApp(debug=area == App.Area.Test)
-log = Log.setup(logging.DEBUG if area == App.Area.Test else logging.ERROR)
+log = logging.getLogger(__name__)
+Log.setup(log, logging.DEBUG if area == App.Area.Test else logging.ERROR)
Sqids = sqids.Sqids()