should't you log it with
printMessage(msg, group);

so if console is not defined it want scream :)

and is this log going to stay forever ? - just asking