0

I turned on logging module, it works, but no logs in log_customer or log_visitor. Those tables are empty. What else can block logging? Magento 1.9

enter image description here

0

Found what was wrong. Someone from earlier extended Mage_Log_Model_Visitor and changed

protected $_skipRequestLogging = false;

to true. So it was skipping here:

public function saveByRequest($observer)
{
    if ($this->_skipRequestLogging || $this->isModuleIgnored($observer)) {
        return $this;
    }

    try {
        $this->setLastVisitAt(now());
        $this->save();
        $this->_getSession()->setVisitorData($this->getData());
    } catch (Exception $e) {
        Mage::logException($e);
    }
    return $this;
}

That was stopping from all logging, even if in config it was on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.