fix ServiceMeshServiceDispatcher overwrite ServiceDispatcher debug file when open SW_OAL_ENGINE_DEBUG. (#10187)
This commit is contained in:
parent
46d3411fe9
commit
3663a4ac5f
|
|
@ -55,6 +55,7 @@
|
|||
* Register ValueColumn as Tag for Record in BanyanDB storage plugin.
|
||||
* Bump up Netty to 4.1.86.
|
||||
* Remove unnecessary additional columns when storage is in logical sharding mode.
|
||||
* Fix ServiceMeshServiceDispatcher overwrite ServiceDispatcher debug file when open SW_OAL_ENGINE_DEBUG.
|
||||
|
||||
#### UI
|
||||
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ public class OALRuntime implements OALEngine {
|
|||
}
|
||||
|
||||
log.debug("Generate metrics class, " + metricsClass.getName());
|
||||
writeGeneratedFile(metricsClass, metricsClass.getSimpleName(), "metrics");
|
||||
writeGeneratedFile(metricsClass, "metrics");
|
||||
|
||||
return targetClass;
|
||||
}
|
||||
|
|
@ -386,7 +386,7 @@ public class OALRuntime implements OALEngine {
|
|||
throw new OALCompileException(e.getMessage(), e);
|
||||
}
|
||||
|
||||
writeGeneratedFile(metricsBuilderClass, className, "metrics/builder");
|
||||
writeGeneratedFile(metricsBuilderClass, "metrics/builder");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -468,7 +468,7 @@ public class OALRuntime implements OALEngine {
|
|||
throw new OALCompileException(e.getMessage(), e);
|
||||
}
|
||||
|
||||
writeGeneratedFile(dispatcherClass, className, "dispatcher");
|
||||
writeGeneratedFile(dispatcherClass, "dispatcher");
|
||||
return targetClass;
|
||||
}
|
||||
|
||||
|
|
@ -514,8 +514,9 @@ public class OALRuntime implements OALEngine {
|
|||
}
|
||||
}
|
||||
|
||||
private void writeGeneratedFile(CtClass metricsClass, String className, String type) throws OALCompileException {
|
||||
private void writeGeneratedFile(CtClass metricsClass, String type) throws OALCompileException {
|
||||
if (openEngineDebug) {
|
||||
String className = metricsClass.getSimpleName();
|
||||
DataOutputStream printWriter = null;
|
||||
try {
|
||||
File workPath = WorkPath.getPath();
|
||||
|
|
|
|||
Loading…
Reference in New Issue