Skip to content

Commit

Permalink
Added intentional error to test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sethwebster committed Apr 14, 2012
1 parent c01f720 commit 4b47c7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jabbot.AspNetBotHost/BotHostModule.cs
Expand Up @@ -19,7 +19,7 @@ public class BotHostModule : NancyModule
private static readonly string _botRooms = ConfigurationManager.AppSettings["Bot.RoomList"];
private static readonly string _startMode = ConfigurationManager.AppSettings["Bot.StartMode"];
private static Bot _bot;

public BotHostModule()
: base("bot")
{
Expand Down Expand Up @@ -66,6 +66,10 @@ private void SetupRoutes()
return e.Message;
}
};
Get["/error"] = _ =>
{
new LogEvent("This is an intentional error").Raise();
};
}

private static void StartBot()
Expand Down

0 comments on commit 4b47c7a

Please sign in to comment.