Why local to Wallpaper.cpp?  If the project expands into multiple source files, wouldn't you want a switch for debug messages all in one place?  Or do you apply switches only on a per-source-file basis?