mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
Make sure something appears in the trace file before trying to read it.
This commit is contained in:
parent
29b4a83d93
commit
6b405700ec
1 changed files with 3 additions and 1 deletions
|
@ -14,11 +14,13 @@ namespace NzbDrone.Integration.Test
|
|||
var config = HostConfig.Get(1);
|
||||
config.LogLevel = "Trace";
|
||||
HostConfig.Put(config);
|
||||
|
||||
var resultGet = Series.All();
|
||||
|
||||
var logFile = Path.Combine(_runner.AppData, "logs", "sonarr.trace.txt");
|
||||
var logLines = File.ReadAllLines(logFile);
|
||||
|
||||
var result = Series.InvalidPost(new Api.Series.SeriesResource());
|
||||
var resultPost = Series.InvalidPost(new Api.Series.SeriesResource());
|
||||
|
||||
logLines = File.ReadAllLines(logFile).Skip(logLines.Length).ToArray();
|
||||
|
||||
|
|
Loading…
Reference in a new issue