Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
60bbe6a6
Unverified
Commit
60bbe6a6
authored
6 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
DEBUG: additional logging
parent
88801b20
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/caosdb/server/CaosDBServer.java
+3
-0
3 additions, 0 deletions
src/main/java/caosdb/server/CaosDBServer.java
src/main/java/caosdb/server/query/POV.java
+4
-0
4 additions, 0 deletions
src/main/java/caosdb/server/query/POV.java
with
7 additions
and
0 deletions
src/main/java/caosdb/server/CaosDBServer.java
+
3
−
0
View file @
60bbe6a6
...
@@ -101,6 +101,8 @@ import org.restlet.routing.TemplateRoute;
...
@@ -101,6 +101,8 @@ import org.restlet.routing.TemplateRoute;
import
org.restlet.routing.Variable
;
import
org.restlet.routing.Variable
;
import
org.restlet.util.Series
;
import
org.restlet.util.Series
;
import
com.ibm.icu.util.TimeZone
;
public
class
CaosDBServer
extends
Application
{
public
class
CaosDBServer
extends
Application
{
private
static
Logger
logger
=
Logger
.
getLogger
(
CaosDBServer
.
class
.
getName
());
private
static
Logger
logger
=
Logger
.
getLogger
(
CaosDBServer
.
class
.
getName
());
...
@@ -133,6 +135,7 @@ public class CaosDBServer extends Application {
...
@@ -133,6 +135,7 @@ public class CaosDBServer extends Application {
public
static
void
main
(
final
String
[]
args
)
{
public
static
void
main
(
final
String
[]
args
)
{
logger
.
fine
(
"SERVER_START"
);
logger
.
fine
(
"SERVER_START"
);
logger
.
info
(
"TimeZone: "
+
TimeZone
.
getDefault
());
try
{
try
{
initServerProperties
();
initServerProperties
();
}
catch
(
IOException
e1
)
{
}
catch
(
IOException
e1
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/caosdb/server/query/POV.java
+
4
−
0
View file @
60bbe6a6
...
@@ -46,6 +46,8 @@ import java.util.Map.Entry;
...
@@ -46,6 +46,8 @@ import java.util.Map.Entry;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
org.jdom2.Element
;
import
org.jdom2.Element
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
public
class
POV
implements
EntityFilterInterface
{
public
class
POV
implements
EntityFilterInterface
{
private
SubProperty
subp
=
null
;
private
SubProperty
subp
=
null
;
...
@@ -67,6 +69,7 @@ public class POV implements EntityFilterInterface {
...
@@ -67,6 +69,7 @@ public class POV implements EntityFilterInterface {
private
String
propertiesTable
=
null
;
private
String
propertiesTable
=
null
;
private
String
refIdsTable
=
null
;
private
String
refIdsTable
=
null
;
private
final
HashMap
<
String
,
String
>
statistics
=
new
HashMap
<>();
private
final
HashMap
<
String
,
String
>
statistics
=
new
HashMap
<>();
private
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
private
Unit
getUnit
(
final
String
s
)
throws
ParserException
{
private
Unit
getUnit
(
final
String
s
)
throws
ParserException
{
return
CaosDBSystemOfUnits
.
getUnit
(
s
);
return
CaosDBSystemOfUnits
.
getUnit
(
s
);
...
@@ -317,6 +320,7 @@ public class POV implements EntityFilterInterface {
...
@@ -317,6 +320,7 @@ public class POV implements EntityFilterInterface {
callPOV
.
close
();
callPOV
.
close
();
}
catch
(
final
SQLException
e
)
{
}
catch
(
final
SQLException
e
)
{
logger
.
error
(
"This POV filter caused an error: "
+
this
.
toString
());
throw
new
QueryException
(
e
);
throw
new
QueryException
(
e
);
}
}
query
.
addBenchmark
(
this
.
getClass
().
getSimpleName
(),
System
.
currentTimeMillis
()
-
t1
);
query
.
addBenchmark
(
this
.
getClass
().
getSimpleName
(),
System
.
currentTimeMillis
()
-
t1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment