Permalink
Browse files

Improved logging

  • Loading branch information...
davidmerfield committed Nov 20, 2018
1 parent dc8d257 commit 10012cf7ccef4cbec1aedfeb8a5f976eb7548224
Showing with 15 additions and 2 deletions.
  1. +15 −2 app/clients/dropbox/routes/index.js
@@ -52,7 +52,12 @@ dashboard
// Headers have been sent at this point, so just log this error
if (err) console.log("Dropbox authentication error:", err);
console.log("Blog:");
console.log(
"Blog:",
req.blog.id,
"Set up Dropbox client successfully! Full access?",
req.unsavedAccount.full_access
);
});
})
// If we encounter some error during
@@ -82,13 +87,21 @@ dashboard
.post(function(req, res, next) {
res.message("/", "Set up Dropbox successfuly!");
// This happens in the background. It would be nice to
// expose a progress bar in future.
require("./writeExistingContents")(req, res, function(err) {
// Headers have been sent at this point, so just log this error
if (err) console.log("Dropbox authentication error:", err);
console.log("Blog:");
console.log(
"Blog:",
req.blog.id,
"Set up Dropbox client successfully! Full access?",
req.unsavedAccount.full_access
);
});
});
// Will remove the Dropbox account from the client's database
// and revoke the token if needed.
dashboard

0 comments on commit 10012cf

Please sign in to comment.