Gulp logging improved
This commit is contained in:
parent
18afce9b1b
commit
4d0495fce7
|
@ -440,7 +440,10 @@ function dockerWait() {
|
||||||
conn.on('error', () => {});
|
conn.on('error', () => {});
|
||||||
conn.connect(err => {
|
conn.connect(err => {
|
||||||
conn.destroy();
|
conn.destroy();
|
||||||
if (!err) return resolve();
|
if (!err) {
|
||||||
|
log('MySQL process ready.');
|
||||||
|
return resolve();
|
||||||
|
}
|
||||||
|
|
||||||
if (elapsedTime >= maxInterval)
|
if (elapsedTime >= maxInterval)
|
||||||
reject(new Error(`MySQL not initialized whithin ${elapsedTime} secs`));
|
reject(new Error(`MySQL not initialized whithin ${elapsedTime} secs`));
|
||||||
|
|
Loading…
Reference in New Issue