Skip to content

Commit

Permalink
[core] Fixing the documentation of Logging.setLoggingLevel.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Oct 13, 2018
1 parent 0aa1411 commit 3270e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main/apiplugins/io.sarl.core/src/io/sarl/core/bic.sarl
Expand Up @@ -1021,9 +1021,9 @@ capacity Logging {

/** Set the logging level.
*
* @param level <code>0</code> for no logging, <code>1</code> for error,
* @param level <code>0</code> or lower for no logging, <code>1</code> for error,
* <code>2</code> for warning, <code>3</code> for info,
* <code>5</code> for debug.
* <code>4</code> or higher for debug.
*/
def setLogLevel(level : int)

Expand Down
Expand Up @@ -83,7 +83,7 @@ protected AgentTrait getCaller() {
*/
void registerUse() {
final int value = this.uses.getAndIncrement();
if (value <= 0) {
if (value == 0) {
install();
}
}
Expand All @@ -92,7 +92,7 @@ void registerUse() {
*/
void unregisterUse() {
final int value = this.uses.decrementAndGet();
if (value <= 0) {
if (value == 0) {
uninstall(UninstallationStage.PRE_DESTROY_EVENT);
uninstall(UninstallationStage.POST_DESTROY_EVENT);
}
Expand Down

0 comments on commit 3270e4c

Please sign in to comment.