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

  1. Reads the stack state from /workspace/.piclaw/stack/state.json and finds the running PHP container
  2. Runs drush watchdog:show --count=60 --format=json (inside the container, or with the local Drush as a fallback)
  3. 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