Fix logging for code generator

no review
/cc: @szeiger