Commit 466552e
committed
Log the username of CLI users
This passes the discovered CLI user, if available, and adds them with a
reference to who it might be. Uses getlogin by default, which grabs the
user based on the controlling terminal and if that fails uses getuser
which pulls from environment variables.
This passed couched in the terms of "possibly on behalf of" as this is
data from the client and so is not reliable.1 parent 827a698 commit 466552e
File tree
3 files changed
+21
-2
lines changed- cylc/flow/network
- tests/integration/network
3 files changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
369 | 380 | | |
370 | 381 | | |
371 | 382 | | |
| |||
374 | 385 | | |
375 | 386 | | |
376 | 387 | | |
377 | | - | |
| 388 | + | |
| 389 | + | |
378 | 390 | | |
379 | 391 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| 726 | + | |
726 | 727 | | |
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
731 | 732 | | |
732 | | - | |
| 733 | + | |
733 | 734 | | |
734 | 735 | | |
735 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| |||
0 commit comments