diff options
author | Florent <florent.git@zeteo.me> | 2022-08-16 08:06:49 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-08-16 10:32:53 +0200 |
commit | 045224d5eb6a41081186c4040bab1570b9d9ad65 (patch) | |
tree | 514367d323f1a35ff6c5a618a6addade98fd11c2 /support/doc/development | |
parent | cbdbee807ddc202901fd61f1af4ca2988d2268b5 (diff) | |
download | PeerTube-045224d5eb6a41081186c4040bab1570b9d9ad65.tar.gz PeerTube-045224d5eb6a41081186c4040bab1570b9d9ad65.tar.zst PeerTube-045224d5eb6a41081186c4040bab1570b9d9ad65.zip |
Allow continusously printing logs through tail and parse-log
Diffstat (limited to 'support/doc/development')
-rw-r--r-- | support/doc/development/tests.md | 13 |
1 files changed, 13 insertions, 0 deletions
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 | |||
79 | NODE_APP_INSTANCE=1 NODE_ENV=test npm run parse-log -- --level debug | less +GF | 79 | NODE_APP_INSTANCE=1 NODE_ENV=test npm run parse-log -- --level debug | less +GF |
80 | ``` | 80 | ``` |
81 | 81 | ||
82 | You can also: | ||
83 | - checkout only the latest logs (PeerTube >= 5.0): | ||
84 | |||
85 | ```bash | ||
86 | tail -n 100 test1/logs/peertube.log | npm run parse-log -- --level debug --files - | ||
87 | ``` | ||
88 | |||
89 | - continuously print the latests logs (PeerTube >= 5.0): | ||
90 | |||
91 | ```bash | ||
92 | tail -f test1/logs/peertube.log | npm run parse-log -- --level debug --files - | ||
93 | ``` | ||
94 | |||
82 | 95 | ||
83 | ## Client E2E tests | 96 | ## Client E2E tests |
84 | 97 | ||