Skip to content

Commit

Permalink
Log archiving: merge stderr with stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpb committed May 23, 2015
1 parent 848744c commit 950bedc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/start-local-app/50_start-new-container
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ -f "$app_dir/release.iid" && ! -f "$cidfile" ]]; then

# stop the container and allow plugin(s) to archive its logs
docker stop "$(<"$app_dir/old-web.cid")" > /dev/null
docker logs -t "$(<"$app_dir/old-web.cid")" |
docker logs -t "$(<"$app_dir/old-web.cid")" 2>&1 |
"$PLUSHU_ROOT/lib/plushook" -i archive-app-proc-log "$app" "web" ||:

# remove the old container
Expand Down
2 changes: 1 addition & 1 deletion hooks/stop-local-app/50_stop-container
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ -f "$cidfile" ]]; then

# stop the container and allow plugin(s) to archive its logs
docker stop "$(<"$cidfile")" > /dev/null
docker logs -t "$(<"$cidfile")" | "$PLUSHU_ROOT/lib/plushook" -i \
docker logs -t "$(<"$cidfile")" 2>&1 | "$PLUSHU_ROOT/lib/plushook" -i \
archive-app-proc-log "$app" "$proc_name" ||:

# remove the old container
Expand Down

0 comments on commit 950bedc

Please sign in to comment.