Skip to content

Commit

Permalink
CLI: verbose处理
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Jul 20, 2024
1 parent 7826fbb commit f2e7958
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nyalcf_cli/lib/commands/start.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ class Start implements CommandImplement {

int n = 0;
ProcessSignal.sigint.watch().listen((signal) {
Logger.verbose('Caught ${++n} of 2');
Logger.info('Press again to close frpc and exit.');
if (verbose) {
Logger.verbose('Caught ${++n} of 2');
Logger.info('Press again to close frpc and exit.');
}

if (n == 2) {
for (var process in ProcessManager.processList) {
Expand Down

0 comments on commit f2e7958

Please sign in to comment.