Skip to content

Commit

Permalink
docs: fixed sql to query in the last example (#5753)
Browse files Browse the repository at this point in the history
there was no `sql` tag in the example, and `query` made the most sense.
  • Loading branch information
tejovanthWork committed Mar 27, 2020
1 parent 50a0641 commit 0aba8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/logging.md
Expand Up @@ -162,6 +162,6 @@ postRepository.save(post, { data: { request: request } });
// in logger you can access it this way:
logQuery(query: string, parameters?: any[], queryRunner?: QueryRunner) {
const requestUrl = queryRunner && queryRunner.data["request"] ? "(" + queryRunner.data["request"].url + ") " : "";
console.log(requestUrl + "executing query: " + sql);
console.log(requestUrl + "executing query: " + query);
}
```

0 comments on commit 0aba8a2

Please sign in to comment.