Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
06b489d2
Commit
06b489d2
authored
17 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
change: log shutdown
SVN: 2082
parent
e4630bd0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datamover/source/java/ch/systemsx/cisd/datamover/Main.java
+16
-1
16 additions, 1 deletion
datamover/source/java/ch/systemsx/cisd/datamover/Main.java
with
16 additions
and
1 deletion
datamover/source/java/ch/systemsx/cisd/datamover/Main.java
+
16
−
1
View file @
06b489d2
...
@@ -53,15 +53,30 @@ public class Main
...
@@ -53,15 +53,30 @@ public class Main
}
}
};
};
private
static
final
Runnable
loggingShutdownHook
=
new
Runnable
()
{
public
void
run
()
{
if
(
operationLog
.
isInfoEnabled
())
{
operationLog
.
info
(
"Datamover is shutting down."
);
}
}
};
private
static
void
initLog
()
private
static
void
initLog
()
{
{
LogInitializer
.
init
();
LogInitializer
.
init
();
Thread
.
setDefaultUncaughtExceptionHandler
(
loggingExceptionHandler
);
Thread
.
setDefaultUncaughtExceptionHandler
(
loggingExceptionHandler
);
Runtime
.
getRuntime
().
addShutdownHook
(
new
Thread
(
loggingShutdownHook
,
"Shutdown Hook"
));
}
}
private
static
void
printInitialLogMessage
(
final
Parameters
parameters
)
private
static
void
printInitialLogMessage
(
final
Parameters
parameters
)
{
{
operationLog
.
info
(
"datamover is starting up."
);
if
(
operationLog
.
isInfoEnabled
())
{
operationLog
.
info
(
"Datamover is starting up."
);
}
for
(
String
line
:
BuildAndEnvironmentInfo
.
INSTANCE
.
getEnvironmentInfo
())
for
(
String
line
:
BuildAndEnvironmentInfo
.
INSTANCE
.
getEnvironmentInfo
())
{
{
operationLog
.
info
(
line
);
operationLog
.
info
(
line
);
...
...
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