- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit39f0108
committed
Fix sslkeylogfile error handling logging
When sslkeylogfile has been set but the file fails to open in anotherwise successful connection, the log entry added to the connobject is never printed. Instead print the error on stderr forincreased visibility. This is a debugging tool so using stderrfor logging is appropriate. Also while there, remove the umaskcall in the callback as it's not useful.Issues noted by Peter Eisentraut in post-commit review, backpatchdown to 18 when support for sslkeylogfile was addedAuthor: Daniel Gustafsson <daniel@yesql.se>Reported-by: Peter Eisentraut <peter@eisentraut.org>Reviewed-by: Peter Eisentraut <peter@eisentraut.org>Discussion:https://postgr.es/m/70450bee-cfaa-48ce-8980-fc7efcfebb03@eisentraut.orgBackpatch-through: 181 parent36026b0 commit39f0108
File tree
2 files changed
+19
-8
lines changed- src
- interfaces/libpq
- test/ssl/t
2 files changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
696 | 700 | | |
697 | 701 | | |
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
701 | | - | |
702 | 705 | | |
703 | 706 | | |
704 | 707 | | |
705 | 708 | | |
706 | 709 | | |
707 | 710 | | |
708 | | - | |
709 | 711 | | |
710 | | - | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
714 | | - | |
715 | | - | |
| 715 | + | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
722 | | - | |
723 | | - | |
| 723 | + | |
| 724 | + | |
724 | 725 | | |
725 | 726 | | |
726 | 727 | | |
| |||
1044 | 1045 | | |
1045 | 1046 | | |
1046 | 1047 | | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1047 | 1052 | | |
1048 | 1053 | | |
1049 | 1054 | | |
| |||
1057 | 1062 | | |
1058 | 1063 | | |
1059 | 1064 | | |
1060 | | - | |
1061 | 1065 | | |
1062 | 1066 | | |
1063 | 1067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
| |||
0 commit comments
Comments
(0)