log: fix impl of Warning

Bad copy/paste when this was originally implemented.