Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
fixes #155 #160
Browse files Browse the repository at this point in the history
  • Loading branch information
arafato committed Mar 2, 2018
1 parent 353f4fe commit a54971f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/core/blob/StorageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ class StorageManager {
// No DB has been persisted / initialized yet.
this.db.addCollection(StorageTables.Containers);
this.db.addCollection(StorageTables.ServiceProperties);
return this.db.saveDatabaseAsync();
const logsStub = {
metaProps: {},
entityType: StorageEntityType.Container,
containerName: '$logs',
httpProps: {}
};
logsStub.httpProps[N.BLOB_PUBLIC_ACCESS] = 'private';
return this.createContainer(logsStub)
.then(() => {
return this.db.saveDatabaseAsync();
});
}
// This should never happen!
console.error(`Failed to initialize database at "${env.azuriteDBPathBlob}"`);
Expand Down

0 comments on commit a54971f

Please sign in to comment.