Merge pull request #3704

e2b72da4 mlog: fix setting no logs (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-04-28 22:40:28 +02:00
commit 6d8498be1f
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 6 additions and 1 deletions

View File

@ -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