getgrav / getgrav/grav-plugin-admin

Title: Suggestion: Add -v flag to default scheduler cron job for better debugging/logging.

Open
#2,484 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Body:

In the official Grav documentation (or installation instructions) suggesting the cron job for the scheduler, the current command is:

`(crontab -l; echo "* * * * * cd /path/to/grav/root;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -`

I suggest adding the -v (verbose) flag to the bin/grav scheduler command to improve logging and troubleshooting capabilities for users.

Proposed Change:

`(crontab -l; echo "* * * * * cd /path/to/grav/root;/usr/bin/php bin/grav scheduler -v 1>> /dev/null 2>&1") | crontab -`

_Note: While the output is still redirected to /dev/null in the default suggestion, having the -v flag ensures that if a user removes the redirection (1>> /dev/null 2>&1) for debugging, they get more detailed output immediately._

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.