Skip to content

Commit

Permalink
Merge pull request winstonjs#132 from scf2k/patch-1
Browse files Browse the repository at this point in the history
fixed padding for lines with longest log level name
  • Loading branch information
pksunkara committed Jun 4, 2012
2 parents d85c309 + 7f55282 commit c25f3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/logger.js
Expand Up @@ -141,7 +141,7 @@ Logger.prototype.log = function (level, msg) {

// If we should pad for levels, do so
if (this.padLevels) {
msg = new Array(this.levelLength - level.length).join(' ') + msg;
msg = new Array(this.levelLength - level.length + 1).join(' ') + msg;
}

function onError (err) {
Expand Down

0 comments on commit c25f3d1

Please sign in to comment.