From 045224d5eb6a41081186c4040bab1570b9d9ad65 Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 16 Aug 2022 08:06:49 +0200 Subject: Allow continusously printing logs through tail and parse-log --- support/doc/development/tests.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'support/doc/development') diff --git a/support/doc/development/tests.md b/support/doc/development/tests.md index 52e7993b2..207d4f984 100644 --- a/support/doc/development/tests.md +++ b/support/doc/development/tests.md @@ -79,6 +79,19 @@ While testing, you might want to display a server's logs to understand why they NODE_APP_INSTANCE=1 NODE_ENV=test npm run parse-log -- --level debug | less +GF ``` +You can also: + - checkout only the latest logs (PeerTube >= 5.0): + +```bash +tail -n 100 test1/logs/peertube.log | npm run parse-log -- --level debug --files - +``` + + - continuously print the latests logs (PeerTube >= 5.0): + +```bash +tail -f test1/logs/peertube.log | npm run parse-log -- --level debug --files - +``` + ## Client E2E tests -- cgit v1.2.3