From a54971fe18dedfbc56e6dd0e3b1f1f80f68730e7 Mon Sep 17 00:00:00 2001 From: arafato Date: Fri, 2 Mar 2018 17:23:10 +0100 Subject: [PATCH] fixes #155 #160 --- lib/core/blob/StorageManager.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/core/blob/StorageManager.js b/lib/core/blob/StorageManager.js index 139ebb6..d94e834 100644 --- a/lib/core/blob/StorageManager.js +++ b/lib/core/blob/StorageManager.js @@ -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}"`);