Fix logging in local environments

ping @nirinchev @teobugslayer @Fatme @tailsu