🚧 Add more debug info

This commit is contained in:
C-3PO 2018-07-05 23:51:29 +02:00
parent f284119bf1
commit 06809ad8ed
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -17,6 +17,7 @@ function waitReadableLength(inputStream: stream.Readable, minLength: number): Pr
* Returns length of the local file header.
*/
export default async function readLocalFileHeader(inputStream: stream.Readable): Promise<number> {
console.log('stream type:', (inputStream as any).readableFlowing);
let localFileHeader: Buffer = inputStream.read(30);
if (localFileHeader === null) {
console.log('Need to wait');