aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/peertube-runner/peertube-runner.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/peertube-runner/peertube-runner.ts')
-rw-r--r--packages/peertube-runner/peertube-runner.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/peertube-runner/peertube-runner.ts b/packages/peertube-runner/peertube-runner.ts
index 6bfd9ac0f..f02526ef9 100644
--- a/packages/peertube-runner/peertube-runner.ts
+++ b/packages/peertube-runner/peertube-runner.ts
@@ -26,7 +26,7 @@ program.command('server')
26 try { 26 try {
27 await RunnerServer.Instance.run() 27 await RunnerServer.Instance.run()
28 } catch (err) { 28 } catch (err) {
29 console.error('Cannot run PeerTube runner as server mode', err) 29 logger.error('Cannot run PeerTube runner as server mode', err)
30 process.exit(-1) 30 process.exit(-1)
31 } 31 }
32 }) 32 })
@@ -41,7 +41,7 @@ program.command('register')
41 try { 41 try {
42 await registerRunner(options) 42 await registerRunner(options)
43 } catch (err) { 43 } catch (err) {
44 console.error('Cannot register this PeerTube runner.', err) 44 logger.error('Cannot register this PeerTube runner.', err)
45 process.exit(-1) 45 process.exit(-1)
46 } 46 }
47 }) 47 })
@@ -53,7 +53,7 @@ program.command('unregister')
53 try { 53 try {
54 await unregisterRunner(options) 54 await unregisterRunner(options)
55 } catch (err) { 55 } catch (err) {
56 console.error('Cannot unregister this PeerTube runner.', err) 56 logger.error('Cannot unregister this PeerTube runner.', err)
57 process.exit(-1) 57 process.exit(-1)
58 } 58 }
59 }) 59 })
@@ -64,7 +64,7 @@ program.command('list-registered')
64 try { 64 try {
65 await listRegistered() 65 await listRegistered()
66 } catch (err) { 66 } catch (err) {
67 console.error('Cannot list registered PeerTube instances.', err) 67 logger.error('Cannot list registered PeerTube instances.', err)
68 process.exit(-1) 68 process.exit(-1)
69 } 69 }
70 }) 70 })