Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
21cba71f
Commit
21cba71f
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Use Log-Warning for non-critical / non-terminating messages.
parent
a6b63260
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
Updater/Update-Service.ps1
+3
-4
3 additions, 4 deletions
Updater/Update-Service.ps1
with
3 additions
and
4 deletions
Updater/Update-Service.ps1
+
3
−
4
View file @
21cba71f
...
...
@@ -299,8 +299,7 @@ function Upload-LogFiles {
Write-Verbose
"Uploaded logfile to [
$(
$LogfileUpload
)
]."
}
catch
{
Log-Error
"Uploading logfile FAILED!
`n
$(
$_
.
Exception
.
Message
)
"
# do not exit here, error on log file uploading is non-critical!
Log-Warning
"Uploading logfile FAILED!
`n
$(
$_
.
Exception
.
Message
)
"
}
}
...
...
@@ -325,9 +324,9 @@ function Send-MailReport([string]$Subject, [string]$Body) {
}
catch
{
$ex
=
$_
.
Exception
.
Message
$msg
=
"
Error s
ending email!
`n`n
$(
$msg
)
"
$msg
=
"
S
ending email
failed
!
`n`n
$(
$msg
)
"
$msg
+=
"Exception message:
$(
$ex
)
"
Log-
Error
-Message
$msg
Log-
Warning
-Message
$msg
}
}
...
...
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