coblox / bobtimus

an autobot that automatically handles swaps as Bob
Apache License 2.0
1 stars 1 forks source link

Loglevel fix #111

Closed bonomat closed 5 years ago

bonomat commented 5 years ago

google-stackdriver logging does not support winsont's log levels like crit or trace.. hence I opted for using the npm defaults which are

{ 
  error: 0, 
  warn: 1, 
  info: 2, 
  verbose: 3, 
  debug: 4, 
  silly: 5 
}

I also had to change trace to debug which is OK in my opinion.

Note: this is a bug because on gcloud bobtimus crashed if it tried to print something on an unsupported log level.