Skip to content

Commit

Permalink
fix: redirect all logs to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Dec 14, 2023
1 parent dacceb1 commit e134093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hooks/common.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
''
debug() {
if [[ ''${NIXAGO_DEBUG-0} -gt 0 ]]; then
printf "(DEBUG) nixago: %s\n" "''${*}"
printf "(DEBUG) nixago: %s\n" "''${*}" >&2
fi
}
error() {
printf "!!! nixago: ERROR %s\n" "''${*}"
printf "!!! nixago: ERROR %s\n" "''${*}" >&2
}
log() {
Expand Down Expand Up @@ -47,6 +47,6 @@
fi
if [[ -n $nixago_log_format ]]; then
printf "nixago: updating repository files\n"
printf "nixago: updating repository files\n" >&2
fi
''

0 comments on commit e134093

Please sign in to comment.