On Wednesday, March 20, 2019 at 2:22:12 PM UTC-4, Michael Merickel wrote: > > The hackiest option possible is to just set a global variable somewhere > when you use bootstrap. Otherwise you could use a custom setting. >
Oh, I can think of hackier ways! One thing I considered was overriding bootstrap and pshell with a custom package, which just sets a global variable and then provides the actual underlying tools. I still have to go through all the ways of running a pyramid application. I was originally leaning towards custom config files, but worry about correctly supporting the wide range of config options. The use-case for the plugin i'm trying to build is centrally logging how/when multiple pyramid processes run to monitor health. One project, for example, has three pyramid apps running and about a dozen cronjobs running bootstrap or prequest. It's currently using ENV variables to control the logging, but it's very messy. I'd like to standardize this into something that can cleanly run for all our projects and be released on PyPi. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/bb2ff0c6-58ca-43b2-9777-5926e3e36189%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.