|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2023 Contributors to the Eclipse Foundation |
| 2 | + * Copyright (c) 2023, 2025 Contributors to the Eclipse Foundation |
3 | 3 | * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
|
4 | 4 | *
|
5 | 5 | * This program and the accompanying materials are made available under the
|
|
36 | 36 | import java.util.Date;
|
37 | 37 | import java.util.List;
|
38 | 38 | import java.util.Properties;
|
39 |
| -import java.util.logging.Level; |
40 | 39 | import java.util.logging.Logger;
|
41 | 40 |
|
42 | 41 | import org.glassfish.api.Param;
|
|
59 | 58 | import org.jvnet.hk2.config.types.Property;
|
60 | 59 | import org.jvnet.hk2.config.types.PropertyBag;
|
61 | 60 |
|
| 61 | +import static java.util.logging.Level.SEVERE; |
62 | 62 | import static org.glassfish.config.support.Constants.NAME_REGEX;
|
63 | 63 |
|
64 | 64 | /**
|
@@ -297,14 +297,8 @@ private boolean setInternalProperty(String propertyName) {
|
297 | 297 | transaction.commit();
|
298 | 298 | } catch (Exception ex) {
|
299 | 299 | transaction.rollback();
|
300 |
| - Logger logger = LogDomains.getLogger(LbConfig.class, LogDomains.ADMIN_LOGGER); |
301 |
| - LocalStringManagerImpl localStrings = new LocalStringManagerImpl(LbConfig.class); |
302 |
| - String msg = localStrings.getLocalString( |
303 |
| - "UnableToSetPropertyInLbconfig", |
304 |
| - "Unable to set property {0} in lbconfig with name {1}", |
305 |
| - propertyName, getName()); |
306 |
| - logger.log(Level.SEVERE, msg); |
307 |
| - logger.log(Level.FINE, "Exception when trying to set property " + propertyName + " in lbconfig " + getName(), ex); |
| 300 | + Logger logger = LogDomains.getLogger(LbConfig.class, LogDomains.ADMIN_LOGGER, false); |
| 301 | + logger.log(SEVERE, "Unable to set property " + propertyName + " in lbconfig with name " + getName(), ex); |
308 | 302 | return false;
|
309 | 303 | }
|
310 | 304 | return true;
|
|
0 commit comments