Avoid redundant logging when included in another codebase

My first (tiny) PR. :dancers: