Merge lp:~stumbaumr/ltsp/ltsp into lp:~ltsp-upstream/ltsp/ltsp-trunk
Proposed by
Rainer Stumbaum
| Status: | Rejected | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Rejected by: | Alkis Georgopoulos | ||||||||
| Proposed branch: | lp:~stumbaumr/ltsp/ltsp | ||||||||
| Merge into: | lp:~ltsp-upstream/ltsp/ltsp-trunk | ||||||||
| Diff against target: |
106 lines (+14/-2) 6 files modified
client/init-ltsp (+3/-1) client/share/ltsp/init-ltsp.d/50-swap (+2/-0) client/share/ltsp/kioskSession (+2/-0) client/share/ltsp/screen-session.d/XS90-assembleXorgConf (+2/-0) client/share/ltsp/screen.d/kiosk (+2/-1) client/share/ltsp/screen_session (+3/-0) |
||||||||
| To merge this branch: | bzr merge lp:~stumbaumr/ltsp/ltsp | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alkis Georgopoulos | Disapprove | ||
| Vagrant Cascadian | Needs Fixing | ||
|
Review via email:
|
|||
Description of the change
Added code for bug #1314201 Logging in LTSP startup
To post a comment you must log in.
Unmerged revisions
- 2599. By Rainer Stumbaum
-
KIOSK_OPTIONS are passed on from the calling script, the variable itself is empty.
This is a quick fix - should be fixed properly... - 2598. By Rainer Stumbaum
-
Removed excessive logging
- 2597. By Rainer Stumbaum
-
Added logging code:
- where syslog is available using logger
- where syslog is not yet available using /dev/kmsg

Thanks for the patches!
The KIOSK_OPTIONS part in kioskSession is not be needed, it's handled by passing the environment variable in screen.d/kiosk to kioskSession in recent LTSP versions.
Regarding the logging, it would be better to have all the various logging functions in a function, which could include a conditional to enable/disable it. The conditional might be best as a bootprompt option, given that some of the logging happens before lts.conf is processed.
There are significant portions of the ltsp codebase which run in "set -e", and so unconditionally calling "logger" or writing to /dev/kmsg could actually result in unhandled errors, though a brief review of this particular code was not running under "set -e". Handling this in a function would also be cleaner.