summaryrefslogtreecommitdiffstats
path: root/lib/config
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-24 17:12:38 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-24 17:12:38 +0100
commit86e4a935e2956e0929b273aece04bea528d1cf4e (patch)
treecd4cdd8f56a3d85b9c0c79e178c11ad2041d8295 /lib/config
parent1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11 (diff)
downloadgitbook-86e4a935e2956e0929b273aece04bea528d1cf4e.zip
gitbook-86e4a935e2956e0929b273aece04bea528d1cf4e.tar.gz
gitbook-86e4a935e2956e0929b273aece04bea528d1cf4e.tar.bz2
Improve logging
Diffstat (limited to 'lib/config')
-rw-r--r--lib/config/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index 34bf97c..72b2026 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -30,14 +30,14 @@ function Config(book, baseConfig) {
Config.prototype.load = function() {
var that = this;
- this.log.info.ln('loading configuration');
-
// Try all potential configuration file
return Promise.some(CONFIG_FILES, function(filename) {
that.log.debug.ln('try loading configuration from', filename);
return that.fs.loadAsObject(that.book.resolve(filename))
.then(function(_config) {
+ that.log.debug.ln('configuration loaded from', filename);
+
that.path = filename;
return that.replace(_config);
})