Commit 00d272f
authored
Do not use javax.naming namespace in the catch block, so that Logback can be used without requiring the javax.naming module (#1004)
The InsertFromJNDIModelHandler is usually created when using Logback, but only used when JNDI is used in the logging configuration. Catching the javax.naming.NamingException will automatically resolve the class when the InsertFromJNDIModelHandler class is used, throwing an exception when it is not present.
By catching the generic Exception, unless JNDI or SMTP are used, the javax.naming module is not required now.
Signed-off-by: Marius Hanl <[email protected]>1 parent 420d67c commit 00d272f
1 file changed
Lines changed: 1 addition & 3 deletions
File tree
- logback-core/src/main/java/ch/qos/logback/core/model/processor
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
75 | | - | |
| 73 | + | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
0 commit comments