Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 40d4650

Browse files
authored
Merge pull request #379 from github/backport/367-fix-exports-crash
Handling File I/O crash in GitHub.Exports in master
2 parents 8d08c3c + 57c2622 commit 40d4650

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/GitHub.Exports/Services/Logger.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,14 @@ static async void DefaultLogger(string msg)
7777
await System.Threading.Tasks.Task.Delay(500);
7878
lock(fileLock)
7979
{
80-
File.AppendAllText(defaultLogPath, msg, Encoding.UTF8);
80+
// TODO: Fix this properly
81+
try
82+
{
83+
File.AppendAllText(defaultLogPath, msg, Encoding.UTF8);
84+
}
85+
catch(Exception)
86+
{
87+
}
8188
}
8289
}
8390
}

0 commit comments

Comments
 (0)