Repository navigation
Features
-
Log level (#603, #604, thanks @zwimer). The server log showed every GitHub request and every release, issue and pull request each sync looked at, so once setup was done it ran to thousands of lines an hour and real problems got buried.
LOG_LEVELpicksdebug,info,warnorerror. Unset, it isauto: everything for the first day after the first account is created, theninfo, which says what happened (syncs, mirrors, releases and files added, cleanup actions, warnings and errors) and leaves the step by step detail todebug. It is read when the app starts and never stored, so environment seeding does not apply. See Logs. -
Time and level on every log line. Lines now start with the time in UTC and
DEBUG,INFO,WARNorERROR:2026-11-28T17:58:36.123Z INFO [Scheduler] Starting scheduler serviceSo
docker logs gitea-mirror 2>&1 | grep -E ' (WARN|ERROR) 'lists the problems, and a pasted log shows when things happened. The level is colored when the log goes to a terminal.FORCE_COLOR=1turns color on for a log viewer that shows it,NO_COLOR=1turns it off.
Changes
- Existing installs get a shorter log right after the upgrade. They are past their first day, so
autogoes straight toinfo, and the log says so. SetLOG_LEVEL=debugto keep the full detail. - Levels match what a line says. Retries, fallbacks, interrupted jobs and repaired migrations are
WARNnow; they were plain lines before. Startup and shutdown steps areDEBUG, so a start and stop is 27 lines instead of 50. - Log lines have a new start. If something of yours reads the log and expects lines to begin with the message, it needs updating.
- The compose files cap Docker's log for the container at three files of 10 MB. Docker keeps it forever otherwise. If you run your own compose file or
docker run, the docs have the lines to add.
As always, back up your Gitea before upgrading.
Full changelog: v3.59.2...v3.60.0