Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix setting no logs in mlog
  • Loading branch information
miltonf committed Mar 13, 2019
1 parent 268b789 commit e7ad342
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contrib/epee/src/mlog.cpp
Expand Up @@ -202,7 +202,12 @@ void mlog_set_log(const char *log)
long level;
char *ptr = NULL;

level = strtoll(log, &ptr, 10);
if (!*log)
{
mlog_set_categories(log);
return;
}
level = strtol(log, &ptr, 10);
if (ptr && *ptr)
{
// we can have a default level, eg, 2,foo:ERROR
Expand Down

0 comments on commit e7ad342

Please sign in to comment.