https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38857

            Bug ID: 38857
           Summary: Cronjobs should log their start and command line
                    parameters before processing options
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

When a cronjob is passed bad parameters it may fail. If it does so before
logging its start, there is no trace that it was even attempted

We should move the logging to before the options are fetched to ease
troubleshooting

To test:
1 - Enable CronjobLog
2 - On command line:
    perl misc/cronjobs/cleanup_database.pl --old_reservers 550
3 - Error on command line
4 - In staff client, go to Tools->Log viewer, check 'Cronjobs' and submit
5 - No entries

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to