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

Saving logs into file doesn't work properly. #78

Closed
pktiuk opened this issue Oct 30, 2020 · 1 comment · Fixed by #180
Closed

Saving logs into file doesn't work properly. #78

pktiuk opened this issue Oct 30, 2020 · 1 comment · Fixed by #180
Assignees
Labels
bug Something isn't working

Comments

@pktiuk
Copy link
Member

pktiuk commented Oct 30, 2020

Describe the bug
Saving logs into file doesn't work properly.

To Reproduce
Set logging to file
drawing

Expected behavior
Logs saved in file should be at least similar to logs generated in terminal using flag --log-level.

Comparison of outputs
Logging level: Debug
In file:

[14:38:05.900] - Logging started
[14:38:06.216] - Using XTest as the event generator.
[14:40:56.694] - Quitting Program

in terminal

$ antimicrox --log-level debug 
Debug: Socket's state:  QLocalSocket::UnconnectedState 
 ((null):0, (null))
Debug: Server name:  "" 
 ((null):0, (null))
Debug: Socket descriptor:  -1 
 ((null):0, (null))
Debug: The connection hasn't been established: 
error text ->  QLocalSocket::ServerNotFoundError 
error text 2 -> "QLocalSocket::connectToServer: Invalid name" 
 ((null):0, (null))
Debug: Socket is not valid 
 ((null):0, (null))
Debug: Socket's state:  QLocalSocket::UnconnectedState 
 ((null):0, (null))
Debug: Server name:  "" 
 ((null):0, (null))
Debug: Socket descriptor:  -1 
 ((null):0, (null))
Debug: "/home/pawel/.local/share/antimicrox/icons" ((null):0, (null))
.....
@pktiuk pktiuk added the bug Something isn't working label Oct 30, 2020
@pktiuk pktiuk self-assigned this Oct 30, 2020
@pktiuk
Copy link
Member Author

pktiuk commented Jan 2, 2021

As a temporal solution logging into file can be done by editing file /usr/share/applicationsio.github.antimicrox.antimicrox.desktop

Simply change line:

Exec=antimicrox

to

Exec=antimicrox --log-level debug 2> /tmp/antimicrox.log

@pktiuk pktiuk mentioned this issue Jul 5, 2021
@pktiuk pktiuk mentioned this issue Jul 26, 2021
5 tasks
Gallxz pushed a commit to Gallxz/antimicrox that referenced this issue Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant