Skip to content

Commit

Permalink
pkp#229 Added missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Mar 27, 2023
1 parent 02cc9e6 commit 8bdee64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions OrcidProfilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,19 @@ public function logInfo($message)
self::writeLog($message, 'INFO');
}

/**
* Write error message to log.
*
* @param string $message Message to write
*/
public function logError($message)
{
if ($this->getSetting($this->currentContextId, 'logLevel') === 'ERROR') {
return;
}
self::writeLog($message, 'ERROR');
}

/**
* Write a message with specified level to log
*
Expand Down

0 comments on commit 8bdee64

Please sign in to comment.