projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3768dd
)
mraa.c: log level syslog messages
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Fri, 14 Aug 2015 10:15:57 +0000
(11:15 +0100)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Fri, 14 Aug 2015 10:15:57 +0000
(11:15 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/mraa.c
patch
|
blob
|
history
diff --git
a/src/mraa.c
b/src/mraa.c
index
9f0c57a
..
3bf9a19
100644
(file)
--- a/
src/mraa.c
+++ b/
src/mraa.c
@@
-60,8
+60,10
@@
mraa_set_log_level(int level)
{
if (level <= 7 && level >= 0) {
setlogmask(LOG_UPTO(level));
+ syslog(LOG_DEBUG, "Loglevel %d is set", level);
return MRAA_SUCCESS;
}
+ syslog(LOG_NOTICE, "Invalid loglevel %d requested", level);
return MRAA_ERROR_INVALID_PARAMETER;
}