Fixed logs not being logged