Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志存储时,System.UnauthorizedAccessException未捕获 #6

Open
ZgblKylin opened this issue Apr 9, 2019 · 1 comment
Open

Comments

@ZgblKylin
Copy link

我在两台pc中同时使用ssr,所以将它放到了OneDrive目录便于同步。
但由于ssr会创建日志文件,两台pc的日志文件重名,OneDrive同步时就会出现文件冲突。
我尝试在杀毒软件中增加自定义规则,禁止创建log文件,然后ssr无法正常启动。

查询Windows日志管理器,出现三条日志:
image
image
image

查看repo源码,在Logging.cs的OpenLogFile()中,建立文件失败时,只捕获了IOException,未捕获其他异常,导致软件崩溃。
建议将

55:    catch(IOException e)

改为

55:    catch(Exception e)
@ZgblKylin
Copy link
Author

dotnet4.0版编译试用,功能正常,日志浏览界面可正常打开,只是里面无日志文字和和图表,程序可稳定运行。
dotnet2.0版由于本机上没有sdk,暂时没进行试验。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant