Skip to content
Permalink
Browse files

Fix setting no logs in mlog

  • Loading branch information...
miltonf committed Mar 13, 2019
1 parent 268b789 commit e7ad342f181f3f2226db59d0c6ca9f8868266353
Showing with 6 additions and 1 deletion.
  1. +6 −1 contrib/epee/src/mlog.cpp
@@ -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

0 comments on commit e7ad342

Please sign in to comment.
You can’t perform that action at this time.