summaryrefslogtreecommitdiff
blob: 7a5d682b122dc75a3c6c068eaccd450b2a52b156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: James Westby <james.westby@ubuntu.com>
Description: Do not clear the log file on each operation, but instead append to it.
 This makes debugging of several suspends much easier.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255
Bug-Ubuntu: https://launchpad.net/bugs/410352

--- pm/pm-functions.in
+++ pm/pm-functions.in
@@ -271,7 +271,7 @@
 		return 1
 	fi
 	export LOGGING=true
-	exec > "$1" 2>&1
+	exec >> "$1" 2>&1
 }
 
 check_suspend() { [ -n "$SUSPEND_MODULE" ]; }