Wrong urls logging implemented

main
Inga 🏳‍🌈 14 years ago
parent 65c9d6bdf8
commit 52352ecadd
  1. 2
      IISMainHandler/handlers/WrongUrlHandler.cs

@ -4,6 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Web; using System.Web;
using System.Xml.Linq; using System.Xml.Linq;
using FLocal.Core;
namespace FLocal.IISHandler.handlers { namespace FLocal.IISHandler.handlers {
class WrongUrlHandler : AbstractGetHandler { class WrongUrlHandler : AbstractGetHandler {
@ -15,6 +16,7 @@ namespace FLocal.IISHandler.handlers {
} }
protected override IEnumerable<XElement> getSpecificData(WebContext context) { protected override IEnumerable<XElement> getSpecificData(WebContext context) {
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