Skip to content
  • Fiona Ebner's avatar
    f05142d5
    util/log: re-allow switching away from stderr log file · f05142d5
    Fiona Ebner authored
    
    
    Commit 59bde213 ("util/log: do not close and reopen log files when
    flags are turned off") prevented switching away from stderr on a
    subsequent invocation of qemu_set_log_internal(). This prevented
    switching away from stderr with the 'logfile' monitor command as well
    as an invocation like
    > ./qemu-system-x86_64 -trace 'qemu_mutex_lock,file=log'
    from opening the specified log file.
    
    Fixes: 59bde213 ("util/log: do not close and reopen log files when flags are turned off")
    Signed-off-by: default avatarFiona Ebner <f.ebner@proxmox.com>
    Message-ID: <20231004124446.491481-1-f.ebner@proxmox.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    f05142d5
    util/log: re-allow switching away from stderr log file
    Fiona Ebner authored
    
    
    Commit 59bde213 ("util/log: do not close and reopen log files when
    flags are turned off") prevented switching away from stderr on a
    subsequent invocation of qemu_set_log_internal(). This prevented
    switching away from stderr with the 'logfile' monitor command as well
    as an invocation like
    > ./qemu-system-x86_64 -trace 'qemu_mutex_lock,file=log'
    from opening the specified log file.
    
    Fixes: 59bde213 ("util/log: do not close and reopen log files when flags are turned off")
    Signed-off-by: default avatarFiona Ebner <f.ebner@proxmox.com>
    Message-ID: <20231004124446.491481-1-f.ebner@proxmox.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading