drupal watchdog cache - PauloCarv/drupalclaw-project GitHub Wiki
drupal-watchdog-cache
Internal skill used by the interface. You normally never run it yourself.
It refreshes /workspace/.piclaw/watchdog.json with the latest 60 Drupal watchdog entries, in compact JSON, so the interface can show recent log entries without printing them in the chat. It answers with a single short line.
What it does
- Reads the stack state from
/workspace/.piclaw/stack/state.jsonand finds the running PHP container - Runs
drush watchdog:show --count=60 --format=json(inside the container, or with the local Drush as a fallback) - Writes the result, compacted, to
watchdog.json. The count and the compact format keep the file under PiClaw's 20 KB file API limit
If no stack is configured or it is not running, it reports an error and suggests drupal-serve.
Related skills
- drupal-logs — show recent watchdog entries in the chat
- drupal-serve — start the stack