dstack icon indicating copy to clipboard operation
dstack copied to clipboard

The new default "rich" server logger format emits unreadable logs

Open r4victor opened this issue 2 months ago • 2 comments

╱╱╭╮╱╱╭╮╱╱╱╱╱╱╭╮
╱╱┃┃╱╭╯╰╮╱╱╱╱╱┃┃
╭━╯┣━┻╮╭╋━━┳━━┫┃╭╮
┃╭╮┃━━┫┃┃╭╮┃╭━┫╰╯╯
┃╰╯┣━━┃╰┫╭╮┃╰━┫╭╮╮
╰━━┻━━┻━┻╯╰┻━━┻╯╰╯
╭━━┳━━┳━┳╮╭┳━━┳━╮
┃━━┫┃━┫╭┫╰╯┃┃━┫╭╯
┣━━┃┃━┫┃╰╮╭┫┃━┫┃
╰━━┻━━┻╯╱╰╯╰━━┻╯

✓ Applied ~/.dstack/server/config.yml

The admin token is be68ae95-050f-472f-84c1-5c25ac898b52
The dstack server (no version) is running at http://127.0.0.1:8000

[10:28:33] DEBUG    c dstack._internal.server.background.tasks.process_instance…
                    h                                                           
                    e                                                           
                    c                                                           
                    k                                                           
                                                                                
                    i                                                           
                    n                                                           
                    s                                                           
                    t                                                           
                    a                                                           
                    n                                                           
                    c                                                           
                    e                                                           
                                                                                
                    p                                                           
                    l                                                           
                    a                                                           
                    s                                                           
                    t                                                           
                    i                                                           
                    c                                                           
                    -                                                           
                    r                                                           
                    a                                                           
                    t                                                           
                    -                                                           
                    1                                                           
                    -                                                           
                    0                                                           
                    -                                                           
                    0                                                           
                                                                                
                    s                                                           
                    t                                                           
                    a                                                           
                    t                                                           
                    u                                                           
                    s                                                           
                    :                                                           
                                                                                
                    s                                                           
                    h                                                           
                    i                                                           
                    m                                                           
                                                                                
                    h                                                           
                    e                                                           
                    a                                                           
                    l                                                           
                    t                                                           
                    h                                                           
                                                                                
                    i                                                           
                    s                                                           
                                                                                
                    O                                                           
                    K       

r4victor avatar Apr 09 '24 05:04 r4victor

Steps to reproduce?

peterschmidt85 avatar Apr 09 '24 05:04 peterschmidt85

@peterschmidt85 This is the logs I get when running dstack server --log-level=debug from master. The terminal width is 83.

r4victor avatar Apr 09 '24 06:04 r4victor

#1114 suggested hiding module paths to leave more space for messages. However we decided to keep module paths for better navigation and debugging.

Alternatively, we can try moving module paths from a separate column to the message column so that the path is displayed below the message or as part of the message.

jvstme avatar Apr 11 '24 13:04 jvstme