Skip to content

Commit

Permalink
chore(NA): change warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Mar 23, 2020
1 parent 46d3b2f commit ee5418d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/legacy/server/logging/rotate/log_rotator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ export class LogRotator {
if (this.usePolling && !this.shouldUsePolling) {
this.log(
['warning', 'logging:rotate'],
'Looks like your current environment support `fs.watch` but you are using polling which uses `fs.watchFile`'
'Looks like your current environment support a faster algorithm then polling. You can try to disable `usePolling`'
);
}

if (!this.usePolling && this.shouldUsePolling) {
this.log(
['warning', 'logging:rotate'],
'The current environment does not support `fs.watch`. Please enable `usePolling` in order to use `fs.watchFile`'
['error', 'logging:rotate'],
'Looks like within your current environment you need to use polling in order to enable log rotator. Please enable `usePolling`'
);
}

Expand Down

0 comments on commit ee5418d

Please sign in to comment.