Skip to content

Conversation

GMishx
Copy link
Member

@GMishx GMishx commented Sep 1, 2021

Note

Depends on #2093

Description

Remove FOSSology job log files older than a given date.

Changes

  1. Added new function removeOldLogFiles()
  2. New option -l # for maintenance agent.

How to test

  1. Run the maintenance agent with "Remove older log files from repository." and give an appropriate date.
  2. Check under /srv/fossology/repository/logs if files older than given date in step 1 exists.
  3. Run the agent from command line and check if it is working.
  4. On command line, try giving date in invalid format and check if the agent fails with appropriate message.

Remove FOSSology job log files older than a given date.

Signed-off-by: Gaurav Mishra <[email protected]>
@GMishx GMishx force-pushed the feat/maintagent/delete-old-log branch from ea98256 to 856a2c4 Compare December 20, 2021 08:27
@shaheemazmalmmd shaheemazmalmmd merged commit 801fe99 into fossology:master Dec 20, 2021
@shaheemazmalmmd shaheemazmalmmd deleted the feat/maintagent/delete-old-log branch December 20, 2021 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants