mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
Merge pull request #3703
18c2f6e2
mlog: fix setting no logs (moneromooo-monero)
This commit is contained in:
commit
66e18cc92f
1 changed files with 6 additions and 1 deletions
|
@ -202,7 +202,12 @@ void mlog_set_log(const char *log)
|
||||||
long level;
|
long level;
|
||||||
char *ptr = NULL;
|
char *ptr = NULL;
|
||||||
|
|
||||||
level = strtoll(log, &ptr, 10);
|
if (!*log)
|
||||||
|
{
|
||||||
|
mlog_set_categories(log);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
level = strtol(log, &ptr, 10);
|
||||||
if (ptr && *ptr)
|
if (ptr && *ptr)
|
||||||
{
|
{
|
||||||
// we can have a default level, eg, 2,foo:ERROR
|
// we can have a default level, eg, 2,foo:ERROR
|
||||||
|
|
Loading…
Reference in a new issue