Debugging and Logs
Enable Media Cloud logging, inspect the debug log, and capture URL-rewrite reports when diagnosing media problems.
Media Cloud keeps a database-backed log for storage, vision, video, and background-task errors. Use it when a migration fails, URLs are not rewritten, or a provider rejects requests.
Logging settings
Open Media Cloud → Settings → Debugging.
| Setting | Default | Description |
|---|---|---|
| Logging Level | Info | None, Info, Warning, or Error. Use None to disable logging. |
| Debug Content Filtering | Off | Logs content filtering and writes a report when Media Cloud rewrites URLs. Turn this off after troubleshooting. |
| Maximum Database Entries | 1000 | Number of log rows to retain. |
| Use Spatie Ray | On | Sends log entries to the Ray app when Ray is installed. |
| Log Target Host | Empty | Remote log host supplied by Media Cloud support. |
| Log Target Port | Empty | Remote log port supplied by Media Cloud support. |
| Ignored Regex Filters | Empty | One regex per line to suppress noisy messages. |
Viewing the log
Go to Media Cloud → Debug Log.
The log viewer shows the time, level, message, and context for each entry. Filter by level or message to isolate a request.
Debugging URL rewrites
If images still point at the local server or show the wrong CDN host:
- Enable Debug Content Filtering.
- Load the affected page once.
- Open the debug log and look for URL replacement entries.
- Check the generated report in
wp-content/mcloud-reports. - Turn Debug Content Filtering off.
Do not leave content-filter debugging enabled on a production site; it writes a report for every filtered page.
Remote logging
Media Cloud support may ask you to enter a Log Target Host and Log Target Port. When configured, log entries are sent to that remote collector. This is intended for support sessions.
Log retention
The log is stored in the database and trimmed to Maximum Database Entries. If the log fills quickly, raise the level to Warning or Error, or add ignored regex filters.
Useful checks
- Storage errors usually include the provider’s HTTP status and message.
- Video errors include webhook and API responses.
- Background-task errors include the task identifier and item ID.
- For URL issues, compare the attachment’s cloud metadata with the URL being rendered.
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.