• Greg Fuller's avatar
    Truncate error text to fix service lockup / stall · fec2221e
    Greg Fuller authored
    What:
    * Update wrap_gradio_call to add a limit to the maximum amount of text output
    
    Why:
    * wrap_gradio_call currently prints out a list of the arguments provided to the failing function.
       * if that function is save_image, this causes the entire image to be printed to stderr
        * If the image is large, this can cause the service to lock up while attempting to print all the text
     * It is easy to generate large images using the x/y plot script
     * it is easy to encounter image save exceptions, including if the output directory does not exist / cannot be written to, or if the file is too big
      * The huge amount of log spam is confusing and not particularly helpful
    fec2221e
ui.py 68.6 KB