Skip to content

GUI does not report "running" if log level is not verbose enough (NOTE or 'higher') #652

@plessbd

Description

@plessbd

Operating Systems

Server: macOS Catalina 10.15.4

Client: macOS Catalina 10.15.4

Barrier Version

2.3.3-snapshot-b6a1b574 (with applied #648)

Steps to reproduce bug

  1. Open Barrier App
  2. Click Start
  3. Window text in bottom left says 'Barrier is starting.' Button changes to stop
  4. Everything works but never gets to a 'Started' state.

If the log level is ERROR or WARNING the GUI does not correctly get 'RUNNING' state

https://github.com/debauchee/barrier/blob/master/src/gui/src/MainWindow.cpp#L379-L399

Server
Good:

[2020-05-05T09:38:07] INFO: starting server
[2020-05-05T09:38:07] INFO: config file: /private/var/folders/gx/6jwb8yzj4fd29jcf_syprmf80000gn/T/Barrier.bDKxjV
[2020-05-05T09:38:07] INFO: log level: NOTE
[2020-05-05T09:38:08] NOTE: started server (IPv4/IPv6), waiting for clients
2020-05-05 09:38:08.043 barriers[35630:8402363] starting cocoa loop

Bad:

[2020-05-05T09:38:59] INFO: starting server
[2020-05-05T09:38:59] INFO: config file: /private/var/folders/gx/6jwb8yzj4fd29jcf_syprmf80000gn/T/Barrier.ZpuYup
[2020-05-05T09:38:59] INFO: log level: WARNING
2020-05-05 09:39:00.000 barriers[35872:8403666] starting cocoa loop

Client:
Good:

[2020-05-05T09:38:59] INFO: starting server
[2020-05-05T09:38:59] INFO: config file: /private/var/folders/gx/6jwb8yzj4fd29jcf_syprmf80000gn/T/Barrier.ZpuYup
[2020-05-05T09:38:59] INFO: log level: WARNING
2020-05-05 09:39:00.000 barriers[35872:8403666] starting cocoa loop

Bad:

[2020-05-05T09:38:59] INFO: starting server
[2020-05-05T09:38:59] INFO: config file: /private/var/folders/gx/6jwb8yzj4fd29jcf_syprmf80000gn/T/Barrier.ZpuYup
[2020-05-05T09:38:59] INFO: log level: WARNING
2020-05-05 09:39:00.000 barriers[35872:8403666] starting cocoa loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglinuxRelated to LinuxmacOSRelated to macOSwindowsRelated to Microsoft Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions