dynamic log(msg)

Prints a debug message to the stdout.

Source

log(msg) {
  if (debug) {
    print('[ardproto] $msg');
  }
}