could have been usefull
This commit is contained in:
parent
4b07b0fc43
commit
a175b4f818
1 changed files with 9 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ namespace Yavsc
|
|||
|
||||
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
|
||||
{
|
||||
AppDomain.CurrentDomain.UnhandledException += OnUnHandledException;
|
||||
|
||||
var devtag = env.IsDevelopment() ? "D" : "";
|
||||
var prodtag = env.IsProduction() ? "P" : "";
|
||||
var stagetag = env.IsStaging() ? "S" : "";
|
||||
|
|
@ -104,6 +106,13 @@ namespace Yavsc
|
|||
GServiceAccount = JsonConvert.DeserializeObject<GoogleServiceAccount>(safile.OpenText().ReadToEnd());
|
||||
}
|
||||
}
|
||||
|
||||
// never hit ...
|
||||
private void OnUnHandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
logger.LogError(sender.ToString());
|
||||
logger.LogError(JsonConvert.SerializeObject(e.ExceptionObject));
|
||||
}
|
||||
|
||||
public static string ConnectionString { get; set; }
|
||||
public static GoogleAuthSettings GoogleSettings { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue