Skip to content

Commit 25a45b6

Browse files
Merge pull request #1006 from yasinBursali/fix/dream-cli-log-to-stderr
fix(dream-cli): route log() and warn() to stderr so command captures remain clean
2 parents d5154c3 + afb7cf4 commit 25a45b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dream-server/dream-cli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ NC='\033[0m'
4242
#=============================================================================
4343
# Helpers
4444
#=============================================================================
45-
log() { echo -e "${CYAN}[dream]${NC} $1"; }
45+
log() { echo -e "${CYAN}[dream]${NC} $1" >&2; }
4646
success() { echo -e "${GREEN}${NC} $1"; }
47-
warn() { echo -e "${YELLOW}${NC} $1"; }
47+
warn() { echo -e "${YELLOW}${NC} $1" >&2; }
4848
error() { echo -e "${RED}${NC} $1"; exit 1; }
4949
log_warn() { echo -e "${YELLOW}${NC} $1"; }
5050
log_error() { echo -e "${RED}${NC} $1" >&2; }

0 commit comments

Comments
 (0)