Skip to content

Commit

Permalink
Merge pull request #2048 from sappo/logging
Browse files Browse the repository at this point in the history
Problem: No logging if zsys is not initialized
  • Loading branch information
sphaero committed Feb 2, 2020
2 parents 25d41a0 + 32151ff commit c12dc68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zsys.c
Expand Up @@ -2248,6 +2248,9 @@ zsys_set_logsystem (bool logsystem)
static void
s_log (char loglevel, char *string)
{
if (!s_initialized)
zsys_init ();

#if defined (__UNIX__)
# if defined (__UTYPE_ANDROID)
int priority = ANDROID_LOG_INFO;
Expand Down

0 comments on commit c12dc68

Please sign in to comment.