Skip to content

Commit

Permalink
Re-enable SourcifyEventManager's listeners (#1003)
Browse files Browse the repository at this point in the history
* #1002 re-enable SourcifyEventManager's listeners
* this commit fixes the grafana-loki missing events

* test exclude loggerLoki from nyc
  • Loading branch information
marcocastignoli authored Apr 27, 2023
1 parent 7693ad5 commit 30104e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
"nyc": {
"exclude": [
"test/**/*.*",
"packages/**/*.*"
"packages/**/*.*",
"src/common/loggerLoki.ts"
],
"reporter": [
"html",
Expand Down
2 changes: 2 additions & 0 deletions src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import routes from "./routes";
import bodyParser from "body-parser";
import config, { etherscanAPIs } from "../config";
import { SourcifyEventManager } from "../common/SourcifyEventManager/SourcifyEventManager";
import "../common/SourcifyEventManager/listeners/matchStored";
import "../common/SourcifyEventManager/listeners/logger";
import genericErrorHandler from "./middlewares/GenericErrorHandler";
import notFoundHandler from "./middlewares/NotFoundError";
import useApiLogging from "./middlewares/ApiLogging";
Expand Down

0 comments on commit 30104e1

Please sign in to comment.