aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/app.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/app.js b/lib/app.js
index a7533ce..7645cd1 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -45,15 +45,9 @@ App.prototype.go = function () {
})
}
-App.prototype.logPrefix = ['[' + pkg.name + ']']
-
-App.prototype.log = function () {
- console.log.apply(console, [].concat.apply(this.logPrefix, arguments))
-}
-
-App.prototype.error = function () {
- console.error.apply(console, [].concat.apply(this.logPrefix, arguments))
-}
+var logPrefix = '[' + pkg.name + ']'
+App.prototype.log = console.log.bind(console, logPrefix)
+App.prototype.error = console.error.bind(console, logPrefix)
App.prototype.unboxMsg = function (msg, cb) {
var self = this