Skip to content

Commit c3b2b65

Browse files
committed
Better logging
1 parent ba14de3 commit c3b2b65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class Logger {
1212

1313
public group (...messages: Array<any>): void {
1414
if (this.enabled) {
15-
console.group('[Vuex-ORM-Apollo]', ...messages);
15+
console.groupCollapsed('[Vuex-ORM-Apollo]', ...messages);
1616
}
1717
}
1818

@@ -29,7 +29,7 @@ export default class Logger {
2929
public logQuery (query: string | DocumentNode, variables?: Arguments) {
3030
if (this.enabled) {
3131
try {
32-
this.group('Sending query:');
32+
this.group('Sending GraphQL query ...');
3333

3434
if (typeof query === 'object' && query.loc) {
3535
console.log(QueryBuilder.prettify(query.loc.source.body));

0 commit comments

Comments
 (0)