-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb7c68f
commit 7021803
Showing
3 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
|
||
var express = require("express"); | ||
var path = require("path"); | ||
var logger = require("morgan"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
var config = require("config"); | ||
|
||
if (config.Raygun.Key === "YOUR_API_KEY") { | ||
console.error( | ||
"[Raygun4Node-Express-Sample] You need to set your Raygun API key in the config file", | ||
); | ||
process.exit(1); | ||
console.error( | ||
"[Raygun4Node-Express-Sample] You need to set your Raygun API key in the config file", | ||
); | ||
process.exit(1); | ||
} | ||
|
||
// Setup Raygun | ||
var raygun = require("raygun"); | ||
var raygunClient = new raygun.Client().init({ | ||
apiKey: config.Raygun.Key, | ||
apiKey: config.Raygun.Key, | ||
}); | ||
|
||
module.exports = raygunClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters