Skip to content

Commit

Permalink
Fix codegen templates for resolver and package
Browse files Browse the repository at this point in the history
  • Loading branch information
nikugogoi committed Jun 6, 2024
1 parent 03374c3 commit e6fe376
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/codegen/src/templates/package-template.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"eslint-plugin-standard": "^5.0.0",
"husky": "^7.0.2",
"ts-node": "^10.2.1",
"typescript": "^5.0.2"
"typescript": "^5.0.2",
"winston": "^3.13.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const executeAndRecordMetrics = async (

export const createResolvers = async (
indexerArg: IndexerInterface,
eventWatcher: EventWatcher
eventWatcher: EventWatcher,
gqlLogger: winston.Logger
): Promise<any> => {
const indexer = indexerArg as Indexer;
Expand Down
4 changes: 2 additions & 2 deletions packages/util/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const createGQLLogger = (logsDir = ''): winston.Logger => {
winston.format.json()
),
transports: [
// Write all logs with importance level of `error` or less to `error.log`
// Write all logs with importance level of `error` or less to `watcher-gql-error.log`
new winston.transports.File({ filename: path.resolve(logsDir, 'watcher-gql-error.log'), level: 'error' }),
// Write all logs with importance level of `info` or less to `combined.log`
// Write all logs with importance level of `info` or less to `watcher-gql.log`
new winston.transports.File({ filename: path.resolve(logsDir, 'watcher-gql.log') })
]
});
Expand Down

0 comments on commit e6fe376

Please sign in to comment.