mlog: fix setting no logs

This commit is contained in:
moneromooo-monero 2018-04-25 20:40:27 +01:00
parent 8fdf645397
commit 18c2f6e21d
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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