You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_logger.LogInformation("Rewrites for {configResponseCount} url patterns loaded from {RewritesFile}",configRewrites.Count(),_configuration.RewritesFile);
38
+
}
39
+
}
40
+
catch(Exceptionex)
41
+
{
42
+
_logger.LogError(ex,"An error has occurred while reading {RewritesFile}:",_configuration.RewritesFile);
43
+
}
44
+
}
45
+
46
+
publicvoidInitResponsesWatcher()
47
+
{
48
+
if(_watcheris not null)
49
+
{
50
+
return;
51
+
}
52
+
53
+
stringpath=Path.GetDirectoryName(RewritesFilePath)??thrownewInvalidOperationException($"{RewritesFilePath} is an invalid path");
54
+
if(!File.Exists(RewritesFilePath))
55
+
{
56
+
_logger.LogWarning("File {RewritesFile} not found. No rewrites will be provided",_configuration.RewritesFile);
0 commit comments