Skip to content

Loading…

Tweak logging to add space and colon between type and msg #180

Merged
merged 1 commit into from

2 participants

@draco2003

Quick tweak to format debug messages slightly nicer

@mrtazz
Etsy, Inc. member

thanks for the patch!

@mrtazz mrtazz merged commit c14e21b into etsy:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/logger.js
View
4 lib/logger.js
@@ -18,9 +18,9 @@ Logger.prototype = {
log: function (msg, type) {
if (this.backend == 'stdout') {
if (!type) {
- type = 'DEBUG: ';
+ type = 'DEBUG';
}
- this.util.log(type + msg);
+ this.util.log(type + ": " + msg);
} else {
if (!type) {
type = this.level
Something went wrong with that request. Please try again.