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

Commit a867b3e

Browse files
authored
Merge pull request #375 from github/paladique/fix-exports-crash
Catch File I/O exception in GitHub.Exports
2 parents 8766df6 + 996d86c commit a867b3e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/GitHub.Exports/Services/Logger.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ 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+
try
81+
{
82+
File.AppendAllText(defaultLogPath, msg, Encoding.UTF8);
83+
}
84+
catch(Exception)
85+
{
86+
}
8187
}
8288
}
8389
}

0 commit comments

Comments
 (0)