forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit66229ac
committed
Introduce a LOG_SERVER_ONLY ereport level, which is never sent to client.
This elevel is useful for logging audit messages and similar informationthat should not be passed to the client. It's equivalent to LOG in termsof decisions about logging priority in the postmaster log, but messageswith this elevel will never be sent to the client.In the current implementation, it's just an alias for the longstandingCOMMERROR elevel (or more accurately, we've made COMMERROR an alias forthis). At some point it might be interesting to allow a LOG_ONLY flag tobe attached to any elevel, but that would be considerably more complicated,and it's not clear there's enough use-cases to justify the extra work.For now, let's just take the easy 90% solution.David Steele, reviewed by Fabien Coelho, Petr Jelínek, and myself1 parent58666ed commit66229ac
2 files changed
+11
-9
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
296 |
| - | |
| 296 | + | |
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
| |||
2086 | 2086 |
| |
2087 | 2087 |
| |
2088 | 2088 |
| |
2089 |
| - | |
| 2089 | + | |
2090 | 2090 |
| |
2091 | 2091 |
| |
2092 | 2092 |
| |
| |||
2965 | 2965 |
| |
2966 | 2966 |
| |
2967 | 2967 |
| |
2968 |
| - | |
| 2968 | + | |
2969 | 2969 |
| |
2970 | 2970 |
| |
2971 | 2971 |
| |
| |||
3595 | 3595 |
| |
3596 | 3596 |
| |
3597 | 3597 |
| |
3598 |
| - | |
| 3598 | + | |
3599 | 3599 |
| |
3600 | 3600 |
| |
3601 | 3601 |
| |
| |||
3699 | 3699 |
| |
3700 | 3700 |
| |
3701 | 3701 |
| |
3702 |
| - | |
| 3702 | + | |
3703 | 3703 |
| |
3704 | 3704 |
| |
3705 | 3705 |
| |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
31 | 33 |
| |
32 | 34 |
| |
33 | 35 |
| |
| |||
354 | 356 |
| |
355 | 357 |
| |
356 | 358 |
| |
357 |
| - | |
| 359 | + | |
358 | 360 |
| |
359 | 361 |
| |
360 | 362 |
| |
|
0 commit comments
Comments
(0)