forked from sim0n00ps/OF-DL
Added logging of which NonInteractive mode it's running
This commit is contained in:
parent
95438ad538
commit
27e19a8749
@ -506,6 +506,8 @@ public class Program
|
|||||||
|
|
||||||
config.NonInteractiveMode = true;
|
config.NonInteractiveMode = true;
|
||||||
|
|
||||||
|
Log.Logger = Log.Logger.ForContext("Mode", "NonInteractiveMode");
|
||||||
|
|
||||||
int indexOfSpecificListsArg = Array.FindIndex(args, a => a.Contains(SPECIFIC_LISTS_ARG, StringComparison.OrdinalIgnoreCase));
|
int indexOfSpecificListsArg = Array.FindIndex(args, a => a.Contains(SPECIFIC_LISTS_ARG, StringComparison.OrdinalIgnoreCase));
|
||||||
int indexOfSpecificUsersArg = Array.FindIndex(args, a => a.Contains(SPECIFIC_USERS_ARG, StringComparison.OrdinalIgnoreCase));
|
int indexOfSpecificUsersArg = Array.FindIndex(args, a => a.Contains(SPECIFIC_USERS_ARG, StringComparison.OrdinalIgnoreCase));
|
||||||
char[] separator = [','];
|
char[] separator = [','];
|
||||||
@ -519,6 +521,8 @@ public class Program
|
|||||||
{
|
{
|
||||||
config.NonInteractiveSpecificLists = strListValues;
|
config.NonInteractiveSpecificLists = strListValues;
|
||||||
config.NonInteractiveModeListName = string.Empty;
|
config.NonInteractiveModeListName = string.Empty;
|
||||||
|
|
||||||
|
Log.Logger = Log.Logger.ForContext("NonInteractiveSpecificLists", string.Join(",", strListValues));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -529,6 +533,8 @@ public class Program
|
|||||||
if (strUserValues.Length > 0)
|
if (strUserValues.Length > 0)
|
||||||
{
|
{
|
||||||
config.NonInteractiveSpecificUsers = strUserValues;
|
config.NonInteractiveSpecificUsers = strUserValues;
|
||||||
|
|
||||||
|
Log.Logger = Log.Logger.ForContext("NonInteractiveSpecificUsers", string.Join(",", strUserValues));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -539,6 +545,8 @@ public class Program
|
|||||||
{
|
{
|
||||||
config.NonInteractiveMode = true;
|
config.NonInteractiveMode = true;
|
||||||
config.OutputBlockedUsers = true;
|
config.OutputBlockedUsers = true;
|
||||||
|
|
||||||
|
Log.Logger = Log.Logger.ForContext("Mode", "OutputBlockedUsers");
|
||||||
}
|
}
|
||||||
|
|
||||||
const string UPDATE_ALL_USER_INFO_ARG = "--update-userinfo";
|
const string UPDATE_ALL_USER_INFO_ARG = "--update-userinfo";
|
||||||
@ -547,6 +555,8 @@ public class Program
|
|||||||
{
|
{
|
||||||
config.NonInteractiveMode = true;
|
config.NonInteractiveMode = true;
|
||||||
config.UpdateAllUserInfo = true;
|
config.UpdateAllUserInfo = true;
|
||||||
|
|
||||||
|
Log.Logger = Log.Logger.ForContext("Mode", "UpdateAllUserInfo");
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.Debug("Additional arguments:");
|
Log.Debug("Additional arguments:");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user