mirror of
https://github.com/monero-project/monero.git
synced 2024-12-29 01:56:14 -05:00
mlog: fix setting no logs
This commit is contained in:
parent
41a66bf05b
commit
e2b72da4ed
@ -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 New Issue
Block a user