changed log level from 'info' to 'debug'
added 'debug' level check to avoid costly method calls