geosolutions-it / geonode-project

A django template project for creating custom GeoNode projects.
http://geonode.org
0 stars 5 forks source link

Persist GeoNode log in volume #40

Open giohappy opened 2 years ago

giohappy commented 2 years ago

Following the discussion in https://github.com/GeoNode/geonode-project/issues/266 we want to do an initial improvement by

Regarding the latter point, I don't know if it would make sense to make this option log both to the log file AND stdout. @randomorder @afabiani opinions on this?

randomorder commented 2 years ago

Hi @giohappy I agree on having a dedicated volume for the logs and persist the logs on disk. We can have either invoke.log OR geonode.log on stdout / stderr but I wouldn't redirect both, it wouldbe messy IMO

Regarding the latter point, I don't know if it would make sense to make this option log both to the log file AND stdout.

I would prefer one OR the other with default on file and an override

giohappy commented 2 years ago

I would prefer one OR the other with default on file and an override

ok, in that case we can have two more env variable similar to the INVOKE_LOG_STDOUT. It might be GEONODE_LOG_STDOUT and CELERY_LOG_STDOUT

jkariscodes commented 2 years ago

Having created the logs successfully and

  1. Inspecting the logs volume I have the following. image
  2. Listing contents in the volume shows celery and geonode logs present. image I noted that Nginx logs are being outputted in stderr as shown below. image
giohappy commented 2 years ago

@jkariukidev please create the issue upstream and the PR (notice my comment here)