-
Notifications
You must be signed in to change notification settings - Fork 285
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
Printer status special character support #689
Conversation
# Conflicts: # src/qz/printer/info/NativePrinterMap.java # src/qz/printer/status/PrinterStatus.java # src/qz/printer/status/StatusMonitor.java
@@ -54,7 +59,7 @@ public static PrinterStatus getFromCupsString(String reason, String issuingPrint | |||
} | |||
|
|||
public String toString() { | |||
String returnString = type.getName() + ": Level " + type.getSeverity() + ", StatusCode " + type.getCode() + ", From " + issuingPrinterName; | |||
String returnString = type.getName() + ": Level " + type.getSeverity() + ", StatusCode " + type.getCode() + ", From " + issuingPrinterDescription; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid confusion please keep issuingPrinterName
in the logs. If description is desired, add it as an additional field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason this changed is because this is the status' toString, and I wanted it to reflect exactly what the status will report to the client. Should I still go ahead with this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason this changed is because this is the status' toString, and I wanted it to reflect exactly what the status will report to the client. Should I still go ahead with this change?
It's just misleading that on Linux, it will use a field labeled "description", when it's clearly not.
fixes #668
Ready for merge.
Fixes:
Known Issues:
Changing printer names on mac doesn't affect the names returned by status until qz restarts. This is due to there being no warning that a printer's description was changed, and renaming a printer on mac only changes the description.Todo:
Investigate solution to mac renaming issueTest changes on windows