Merge pull request #30273 from alferpal/master

sonic-boom.reopen file descriptor should be optional
This commit is contained in:
Armando Aguirre
2018-11-05 16:23:26 -08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ declare class SonicBoom extends EventEmitter {
/**
* Reopen the file in place, useful for log rotation.
*/
reopen(file: string): void;
reopen(fileDescriptor?: string | number): void;
/**
* Flushes the buffered data synchronously. This is a costly operation.
+2
View File
@@ -7,6 +7,8 @@ sonic.flush();
sonic.flushSync();
sonic.reopen();
sonic.end();
sonic.destroy();