Skip to content

Commit

Permalink
Update settigns Database logging section.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed May 18, 2023
1 parent 3647f5d commit 81f785a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ To activate it is sufficient add a new log `handler` inside Django `LOGGING` set
}
}

.. Important::
This logging system continues to save log records with no upper limit. To keep the table from getting too big, there is a `django command` that deletes records older than a set number of days.
Is possible set a cronjob with the follow command:

`python3 manage.py clear_db_logs --days 30`

In this case records older than 30 days will be deleted.

Frontend portal setting
***********************
Expand Down

0 comments on commit 81f785a

Please sign in to comment.