Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes stdout is slow to receive streams when stderr is fine #110

Open
ReagentX opened this issue Dec 28, 2022 · 0 comments
Open

Sometimes stdout is slow to receive streams when stderr is fine #110

ReagentX opened this issue Dec 28, 2022 · 0 comments
Assignees
Labels
bug Something isn't working input Problems with input streams

Comments

@ReagentX
Copy link
Owner

ReagentX commented Dec 28, 2022

Example to reproduce:

"""
Simple script to generate test logs
"""

import random
import time
import logging

def first():
    RANDINT = random.randint(1, 100)
    if RANDINT % 3 == 0:
        logging.warning('I am a first log! %s\x00', RANDINT)

def second():
    RANDINT = random.randint(1, 100)
    if RANDINT % 5 == 0:
        logging.error('I am a second log! %s\x00', RANDINT)
        
def third():
    RANDINT = random.randint(1, 100)
    if RANDINT % 7 == 0:
        logging.info('I am a third log! %s\x00', RANDINT)

logging.info('\x00I am the first log in the list! %s\x00', 0)
while True:
    first()
    second()
    third()
    RANDINT = random.randint(1, 100)
    print(f'I am standard output, {RANDINT}')
    time.sleep(0.001)
@ReagentX ReagentX added bug Something isn't working input Problems with input streams labels Dec 28, 2022
@ReagentX ReagentX self-assigned this Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input Problems with input streams
Projects
None yet
Development

No branches or pull requests

1 participant