original_string: private function _storeLogEntry(\Zend_Controller_Request_Abstract $request, array $row, $force)
      {
          if (! $force) {
              if (isset($this->_sessionStore->last) && ($row === $this->_sessionStore->last)) {
                  return false;
              }
  
              // Now save the variables to the session to prevent duplicates if needed
              //
              // We skip $force as they are always saved and this prevents double logging in case of
              // e.g. a show => edit => show cycle
              $this->_sessionStore->last = $row;
          }
          try {
              $this->_db->insert('gems__log_activity', $row);
              return true;
          } catch (\Exception $exc) {
              \Gems_Log::getLogger()->logError($exc, $request);
              $this->_warn();
              return false;
          }
      }
code: private function _storeLogEntry(\Zend_Controller_Request_Abstract $request, array $row, $force)
      {
          if (! $force) {
              if (isset($this->_sessionStore->last) && ($row === $this->_sessionStore->last)) {
                  return false;
              }
  
              // Now save the variables to the session to prevent duplicates if needed
              //
              // We skip $force as they are always saved and this prevents double logging in case of
              // e.g. a show => edit => show cycle
              $this->_sessionStore->last = $row;
          }
          try {
              $this->_db->insert('gems__log_activity', $row);
              return true;
          } catch (\Exception $exc) {
              \Gems_Log::getLogger()->logError($exc, $request);
              $this->_warn();
              return false;
          }
      }
code_tokens: private function _storeLogEntry ( \ Zend_Controller_Request_Abstract $ request , array $ row , $ force ) { if ( ! $ force ) { if ( isset ( $ this -> _sessionStore -> last ) && ( $ row === $ this -> _sessionStore -> last ) ) { return false ; } // Now save the variables to the session to prevent duplicates if needed // // We skip $force as they are always saved and this prevents double logging in case of // e.g. a show => edit => show cycle $ this -> _sessionStore -> last = $ row ; } try { $ this -> _db -> insert ( 'gems__log_activity' , $ row ) ; return true ; } catch ( \ Exception $ exc ) { \ Gems_Log :: getLogger ( ) -> logError ( $ exc , $ request ) ; $ this -> _warn ( ) ; return false ; } }
docstring: Stores the current log entry
  
  @param \Zend_Controller_Request_Abstract $request
  @param array $row
  @param boolean $force     Should we force the logentry to be inserted or should we try to skip duplicates?
  @return boolean True when a log entry was stored
docstring_tokens: Stores the current log entry