File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010### Added
1111- Added multi-branch indexing support for Gerrit. [ #433 ] ( https://github.com/sourcebot-dev/sourcebot/pull/433 )
1212
13+ ### Fixed
14+ - Removed prefix from structured log output. [ #443 ] ( https://github.com/sourcebot-dev/sourcebot/pull/443 )
15+
1316## [ 4.6.3] - 2025-08-04
1417
1518### Fixed
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33# @see : https://github.com/Supervisor/supervisor/issues/553#issuecomment-1353523182
4- exec 1> >( perl -ne ' $| = 1; print "[' " ${SUPERVISOR_PROCESS_NAME} " ' ] | $_"' >&1 )
5- exec 2> >( perl -ne ' $| = 1; print "[' " ${SUPERVISOR_PROCESS_NAME} " ' ] | $_"' >&2 )
64
7- exec " $@ "
5+ # Check if structured logging is enabled
6+ if [ " ${SOURCEBOT_STRUCTURED_LOGGING_ENABLED} " = " true" ]; then
7+ # Don't prefix output, just execute the command directly
8+ exec " $@ "
9+ else
10+ # Apply prefix to output
11+ exec 1> >( perl -ne ' $| = 1; print "[' " ${SUPERVISOR_PROCESS_NAME} " ' ] | $_"' >&1 )
12+ exec 2> >( perl -ne ' $| = 1; print "[' " ${SUPERVISOR_PROCESS_NAME} " ' ] | $_"' >&2 )
13+
14+ exec " $@ "
15+ fi
You can’t perform that action at this time.
0 commit comments