rearrange logging for theme favourites script (bug 862105)