Skip to content

Instantly share code, notes, and snippets.

@danpette
Created October 3, 2014 15:41
Show Gist options
  • Save danpette/b342996488ff26a33c26 to your computer and use it in GitHub Desktop.
Save danpette/b342996488ff26a33c26 to your computer and use it in GitHub Desktop.
Medoo Error logging
$error = $this->database->error();
if($error[0] != "0000"){
$Log->addError('Class_method('. $Helper::unpack($params).')', [$this->database->error(), $this->database->last_query()]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment