On Monday, December 17, 2018 at 4:57:56 PM UTC+11, Graham Dumpleton wrote:
>
>
>
> On 17 Dec 2018, at 4:51 pm, [email protected] <javascript:> wrote:
>
> Thanks, Graham! I swear I tried a variation on what you're suggesting, but 
> I've just given it another go and have gotten the application logging 
> working now, thanks!!
>
> I did end up getting mod_wsgi-express working, but it was right fiddly to 
> do, and would need a whole new suite of performance/memory/load testing, so 
> I'm going to stick with the existing configuration for now.
>
> I did notice as I was poking around that I'm getting this in the output 
> (seems to be direct to stderr or stdout) when a mod_wsgi process handles 
> its first request:
>
> { "time":"Mon Dec 17 15:57:36 2018", "function" : "[wsgi:info]" , 
> "message" : "mod_wsgi (pid=12, process='', application='172.17.0.2:8000|'): 
> Loading Python script file '/app/main/wsgi.py'.", "referer" : "-" }
> {"asctime": "2018-12-17 15:57:37,498", "levelname": "INFO", "message": 
> "New Relic Python Agent (4.4.1.104)"}
> {"asctime": "2018-12-17 15:57:37,788", "levelname": "INFO", "message": 
> "INFO MESSAGE"}
> {"asctime": "2018-12-17 15:57:37,788", "levelname": "ERROR", "message": 
> "ERROR MESSAGE"}
>   File "setup.py", line 38
>     f.write(f'version = "{version}"\n')
>                                      ^
> SyntaxError: invalid syntax
>
>
> I am an old guy who doesn't learn new tricks. I have never used f-strings, 
> but that is more to do with needing to support old Python versions. So I am 
> not quite sure where that might be coming from. It is definitely not 
> mod_wsgi. Try doing a 'find / -name setup.py' and see if you can find where 
> the file might be. If it is a transient file due to something trying to 
> install something on demand, you might not catch where it is though.
>

Oh, I *know* what the file is, it's one of my application's files. I just 
don't know why something Python 2 is trying to read it. I'm not running 
anything other than apache->mod_wsgi/python3->Django in the container. It's 
very weird.


Wow, formatting gets funky in Groups, doesn't it... ;-)


      Richard

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to