WrongUrl logging improved

main
Inga 🏳‍🌈 14 years ago
parent fe018ece2e
commit 19646c009c
  1. 2
      IISMainHandler/handlers/WrongUrlHandler.cs

@ -16,7 +16,7 @@ namespace FLocal.IISHandler.handlers {
} }
protected override IEnumerable<XElement> getSpecificData(WebContext context) { protected override IEnumerable<XElement> getSpecificData(WebContext context) {
context.LogError(new WrongUrlException()); if(!context.httprequest.Path.StartsWith("/static/")) context.LogError(new WrongUrlException());
return new XElement[] { return new XElement[] {
new XElement("path", context.httprequest.Path) new XElement("path", context.httprequest.Path)
}; };

Loading…
Cancel
Save