Unverified Commit af011588 authored by QuanluZhang's avatar QuanluZhang Committed by GitHub
Browse files

Merge pull request #700 from Microsoft/v0.5.1

commit v0.5.1 to master branch after v0.5.1 release
parents 4bae0b5c cc95fef8
......@@ -138,7 +138,7 @@ class Logger {
private log(level: string, param: any[]): void {
const buffer: WritableStreamBuffer = new WritableStreamBuffer();
buffer.write(`[${(new Date()).toISOString()}] ${level} `);
buffer.write(format(null, param));
buffer.write(format(param));
buffer.write('\n');
buffer.end();
this.bufferSerialEmitter.feed(buffer.getContents());
......
......@@ -49,6 +49,7 @@ class NNIDataStore implements DataStore {
if(isNewExperiment()) {
mkDirP(databaseDir).then(() => {
this.db.init(true, databaseDir).then(() => {
this.log.info('Datastore initialization done');
this.initTask.resolve();
}).catch((err: Error) => {
this.initTask.reject(err);
......@@ -58,6 +59,7 @@ class NNIDataStore implements DataStore {
});
} else {
this.db.init(false, databaseDir).then(() => {
this.log.info('Datastore initialization done');
this.initTask.resolve();
}).catch((err: Error) => {
this.initTask.reject(err);
......
......@@ -115,7 +115,6 @@ class NNIRestHandler {
const ds: DataStore = component.get<DataStore>(DataStore);
ds.init().then(() => {
res.send(this.nniManager.getStatus());
this.log.info('Datastore initialization done');
}).catch(async (err: Error) => {
this.handle_error(err, res);
this.log.error(err.message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment