proton: Open the log file in append mode.
Opening file in append mode sets the offset to the end of the file prior to each write. This allows user to append tags/notes to the log file just before interesting events, e.g.: local $ ssh ivyl@test test $ echo "!!! FOCUS CHANGE" >> ~/steam-XYZ.log The log file is deleted just before we open it anyway, so there won't be any leftover content from previous session.
This commit is contained in:
parent
a0c2cf6cac
commit
d2d52bd68a
1 changed files with 1 additions and 1 deletions
2
proton
2
proton
|
@ -791,7 +791,7 @@ class Session:
|
|||
lfile_path = basedir + "/steam-" + os.environ["SteamGameId"] + ".log"
|
||||
if os.path.exists(lfile_path):
|
||||
os.remove(lfile_path)
|
||||
self.log_file = open(lfile_path, "w+")
|
||||
self.log_file = open(lfile_path, "a")
|
||||
self.log_file.write("======================\n")
|
||||
with open(g_proton.version_file, "r") as f:
|
||||
self.log_file.write("Proton: " + f.readline().strip() + "\n")
|
||||
|
|
Loading…
Reference in a new issue