Using debug and log together